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