summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x4
-rw-r--r--src/modules/evas/engines/gl_common/shader/fragment.glsl4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x b/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x
index e5c16b5b75..d244b37f08 100644
--- a/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x
+++ b/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x
@@ -215,7 +215,9 @@ static const char fragment_glsl[] =
215 " c = vec4(c.a, c.a, c.a, c.a);\n" 215 " c = vec4(c.a, c.a, c.a, c.a);\n"
216 "#endif\n" 216 "#endif\n"
217 "#ifdef SHD_FILTER_GRAYSCALE\n" 217 "#ifdef SHD_FILTER_GRAYSCALE\n"
218 " c.rgb = 0.3 * c.r + 0.59 * c.g + 0.11 * c.b;\n" 218 " c.r = 0.3 * c.r + 0.59 * c.g + 0.11 * c.b;\n"
219 " c.g = c.r;\n"
220 " c.b = c.r;\n"
219 "#endif\n" 221 "#endif\n"
220 "#ifdef SHD_FILTER_INVERSE_COLOR\n" 222 "#ifdef SHD_FILTER_INVERSE_COLOR\n"
221 " c.rgb = c.a - c.rgb;\n" 223 " c.rgb = c.a - c.rgb;\n"
diff --git a/src/modules/evas/engines/gl_common/shader/fragment.glsl b/src/modules/evas/engines/gl_common/shader/fragment.glsl
index b51bbb4d38..09947968e9 100644
--- a/src/modules/evas/engines/gl_common/shader/fragment.glsl
+++ b/src/modules/evas/engines/gl_common/shader/fragment.glsl
@@ -231,7 +231,9 @@ vec4 fetch_pixel(float ox, float oy)
231#endif 231#endif
232 232
233#ifdef SHD_FILTER_GRAYSCALE 233#ifdef SHD_FILTER_GRAYSCALE
234 c.rgb = 0.3 * c.r + 0.59 * c.g + 0.11 * c.b; 234 c.r = 0.3 * c.r + 0.59 * c.g + 0.11 * c.b;
235 c.g = c.r;
236 c.b = c.r;
235#endif 237#endif
236 238
237#ifdef SHD_FILTER_INVERSE_COLOR 239#ifdef SHD_FILTER_INVERSE_COLOR