Summary:
When grayscale fillter works there is a compile error:
implicit cast from "float" to "vec3"
Test Plan:
1. Create filter_example with following .
efl_gfx_filter_program_set(image, "grayscale ()", "grayscale");
2. Run.
ELM_ACCEL=gl ./filter_example
Reviewers: Hermet, jsuya
Reviewed By: Hermet
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10595
" c = vec4(c.a, c.a, c.a, c.a);\n"
"#endif\n"
"#ifdef SHD_FILTER_GRAYSCALE\n"
- " c.rgb = 0.3 * c.r + 0.59 * c.g + 0.11 * c.b;\n"
+ " c.r = 0.3 * c.r + 0.59 * c.g + 0.11 * c.b;\n"
+ " c.g = c.r;\n"
+ " c.b = c.r;\n"
"#endif\n"
"#ifdef SHD_FILTER_INVERSE_COLOR\n"
" c.rgb = c.a - c.rgb;\n"
#endif
#ifdef SHD_FILTER_GRAYSCALE
- c.rgb = 0.3 * c.r + 0.59 * c.g + 0.11 * c.b;
+ c.r = 0.3 * c.r + 0.59 * c.g + 0.11 * c.b;
+ c.g = c.r;
+ c.b = c.r;
#endif
#ifdef SHD_FILTER_INVERSE_COLOR