014e5109707a25f85a34fa17d4ffe278fabde52b
[framework/uifw/evas.git] / src / modules / engines / gl_common / shader / filter_greyscale.shd
1 #ifdef GL_ES
2 precision mediump float;
3 #endif
4 uniform sampler2D tex;
5 varying vec4 col;
6 varying vec2 tex_c;
7 void main()
8 {
9    float inten = dot(texture2D(tex,tex_c.xy).agb,vec3(.3, .59, .11));
10    gl_FragColor = vec4(inten, inten, inten, texture2D(tex,tex_c.xy).r) * col;
11 }