aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/evas/src/modules/engines/gl_common/shader/filter_greyscale_nomul.shd
blob: b5b8ec6b934464d279a37051ec1857643762895d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifdef GL_ES
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
#endif
uniform sampler2D tex;
varying vec2 tex_c;
void main()
{
   float inten = dot(texture2D(tex,tex_c.xy).abg,vec3(.3, .59, .11));
   gl_FragColor = vec4(inten, inten, inten, texture2D(tex,tex_c.xy).r);
}