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