diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/evas/src/modules/engines/gl_common/shader/filter_greyscale_nomul.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/engines/gl_common/shader/filter_greyscale_nomul.h b/libraries/evas/src/modules/engines/gl_common/shader/filter_greyscale_nomul.h new file mode 100644 index 0000000..f501a02 --- /dev/null +++ b/libraries/evas/src/modules/engines/gl_common/shader/filter_greyscale_nomul.h | |||
@@ -0,0 +1,14 @@ | |||
1 | "#ifdef GL_ES\n" | ||
2 | "#ifdef GL_FRAGMENT_PRECISION_HIGH\n" | ||
3 | "precision highp float;\n" | ||
4 | "#else\n" | ||
5 | "precision mediump float;\n" | ||
6 | "#endif\n" | ||
7 | "#endif\n" | ||
8 | "uniform sampler2D tex;\n" | ||
9 | "varying vec2 tex_c;\n" | ||
10 | "void main()\n" | ||
11 | "{\n" | ||
12 | " float inten = dot(texture2D(tex,tex_c.xy).abg,vec3(.3, .59, .11));\n" | ||
13 | " gl_FragColor = vec4(inten, inten, inten, texture2D(tex,tex_c.xy).r);\n" | ||
14 | "}\n" | ||