]> git.sesse.net Git - movit/commitdiff
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 2f52d2be5512cfa60e33682796870fda95fcb6f5..0d4206a79500a3efaac45ece56bada38518b2203 100644 (file)
@@ -1,6 +1,6 @@
 // Mirrors the image horizontally.
 vec4 FUNCNAME(vec2 tc)
 {
 // 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);
 }
        return LAST_INPUT(tc);
 }