From 4664e86672ee0242f4201ebf7e4673b16e7dc733 Mon Sep 17 00:00:00 2001 From: Antti Sinnemaa Date: Tue, 24 Jan 2012 13:58:27 +0200 Subject: Displace effect update --- src/effects/Displace.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/effects/Displace.qml b/src/effects/Displace.qml index 40c46fe..a03cbd2 100644 --- a/src/effects/Displace.qml +++ b/src/effects/Displace.qml @@ -95,7 +95,7 @@ Item { lowp vec4 offset = texture2D(displacementSource, qt_TexCoord0); offset.xy -= vec2(0.5, 0.5); offset.xy = offset.xy * step(vec2(1.0/256.0), abs(offset.xy)); - highp vec2 tx = qt_TexCoord0 + (offset.xy * displacement); + highp vec2 tx = qt_TexCoord0 + (vec2(-offset.x, offset.y) * displacement); lowp float e1 = linearstep(0.0, xPixel, tx.x); lowp float e2 = linearstep(0.0, yPixel, tx.y); -- cgit v1.2.3