mirror of
https://github.com/SangeloDev/SangeFault.git
synced 2024-11-14 01:22:43 +00:00
17 lines
344 B
Text
17 lines
344 B
Text
|
#version 150
|
||
|
|
||
|
uniform sampler2D DiffuseSampler;
|
||
|
|
||
|
in vec2 texCoord;
|
||
|
|
||
|
uniform float InverseAmount;
|
||
|
|
||
|
out vec4 fragColor;
|
||
|
|
||
|
void main(){
|
||
|
vec4 diffuseColor = texture(DiffuseSampler, texCoord);
|
||
|
vec4 invertColor = 1.0 - diffuseColor;
|
||
|
vec4 outColor = mix(diffuseColor, invertColor, InverseAmount);
|
||
|
fragColor = vec4(outColor.rgb, 1.0);
|
||
|
}
|