Make Input an abstract base class, and move the current functionality into FlatInput...
[movit] / mirror_effect.frag
index 2f52d2b..049194d 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);
 }