Less stupid mirroring.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 2 Oct 2012 18:37:44 +0000 (20:37 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 2 Oct 2012 18:37:44 +0000 (20:37 +0200)
mirror_effect.frag

index 2f52d2b..0d4206a 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);
+       tc.x = 1.0 - tc.x;
        return LAST_INPUT(tc);
 }