summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAntti Sinnemaa <antti.sinnemaa@nokia.com>2012-01-24 13:58:27 +0200
committerAntti Sinnemaa <antti.sinnemaa@nokia.com>2012-01-24 13:58:27 +0200
commit4664e86672ee0242f4201ebf7e4673b16e7dc733 (patch)
treecf49ed6a91a6176187b92bab3500caa4c7ee12e1 /src
parentecb1abba3bbc7ec3c7d5c3eaf0e8907567f716d1 (diff)
downloadqtgraphicaleffects-4664e86672ee0242f4201ebf7e4673b16e7dc733.tar.gz
Displace effect update
Diffstat (limited to 'src')
-rw-r--r--src/effects/Displace.qml2
1 files changed, 1 insertions, 1 deletions
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);