aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/evas/src/modules/engines/gl_common/shader/filter_invert_bgra_nomul.shd
blob: 682acb2d018058eb4c828916a50b0166c2f5c285 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifdef GL_ES
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
#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);
}