2011-04-18 22:47:51 -07:00
|
|
|
#ifdef GL_ES
|
2011-10-06 06:25:18 -07:00
|
|
|
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
2011-10-04 04:21:22 -07:00
|
|
|
precision highp float;
|
2011-10-06 06:25:18 -07:00
|
|
|
#else
|
|
|
|
precision mediump float;
|
|
|
|
#endif
|
2011-04-18 22:47:51 -07:00
|
|
|
#endif
|
|
|
|
uniform sampler2D tex;
|
|
|
|
varying vec4 col;
|
|
|
|
varying vec2 tex_c;
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
vec3 inv = vec3(1.0, 1.0, 1.0) - texture2D(tex,tex_c.xy).rgb;
|
|
|
|
gl_FragColor = vec4(inv.r, inv.g, inv.b, 1.0);
|
|
|
|
}
|