]> git.sesse.net Git - movit/blob - saturation_effect.frag
Fix some small whitespace errors in SingleResamplePassEffect.
[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 }