10 lines
204 B
GLSL
10 lines
204 B
GLSL
|
|
uniform sampler2D myTexture;
|
|
|
|
void main (void)
|
|
{
|
|
vec4 col = texture2D(myTexture, vec2(gl_TexCoord[0]));
|
|
col *= gl_Color;
|
|
gl_FragColor = vec4(1.0-col.r, 1.0-col.g, 1.0-col.b, 1.0);
|
|
}
|