]> git.sesse.net Git - movit/blobdiff - saturation_effect.glsl
Rename .glsl to .vert/.frag.
[movit] / saturation_effect.glsl
diff --git a/saturation_effect.glsl b/saturation_effect.glsl
deleted file mode 100644 (file)
index a68485a..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// Saturate/desaturate (in linear space).
-
-vec4 FUNCNAME(vec2 tc) {
-       vec4 x = LAST_INPUT(tc);
-
-       float luminance = dot(x.rgb, vec3(0.2126, 0.7152, 0.0722));
-       x.rgb = mix(vec3(luminance), x.rgb, PREFIX(saturation));
-
-       return x;
-}