mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-09 11:50:37 +01:00
17 lines
385 B
GLSL
17 lines
385 B
GLSL
|
|
||
|
// Texture sampler
|
||
|
uniform sampler2D TextureSampler;
|
||
|
|
||
|
// TexCoords from vertex shader
|
||
|
varying vec2 TexCoords;
|
||
|
|
||
|
void main (void)
|
||
|
{
|
||
|
// Texture is sampled at Texcoords using texture2D
|
||
|
vec4 Color = texture2D(TextureSampler, TexCoords);
|
||
|
|
||
|
// Inverse the color to produce negative image effect
|
||
|
Color.rgb = 1.0 - Color.rgb;
|
||
|
|
||
|
gl_FragColor = Color;
|
||
|
}
|