]> git.sesse.net Git - movit/blobdiff - mirror_effect.frag
In overlay matte, use the luminance as a matte instead of each individual color compo...
[movit] / mirror_effect.frag
index 2f52d2be5512cfa60e33682796870fda95fcb6f5..049194d63adbbb6d0d15040aabeb5dbc39b4b90e 100644 (file)
@@ -1,6 +1,6 @@
 // Mirrors the image horizontally.
 vec4 FUNCNAME(vec2 tc)
 {
-       tc = vec2(1.0, 0.0) + tc * vec2(-1.0, 1.0);
-       return LAST_INPUT(tc);
+       tc.x = 1.0 - tc.x;
+       return INPUT(tc);
 }