Release Movit 1.3.2. (From a branch, since I do not want to break ABI compatibility...
[movit] / saturation_effect.frag
1 // Saturate/desaturate (in linear space).
2
3 vec4 FUNCNAME(vec2 tc) {
4         vec4 x = INPUT(tc);
5
6         float luminance = dot(x.rgb, vec3(0.2126, 0.7152, 0.0722));
7         x.rgb = mix(vec3(luminance), x.rgb, PREFIX(saturation));
8
9         return x;
10 }