diff options
author | Antti Sinnemaa <antti.sinnemaa@nokia.com> | 2012-01-24 13:58:27 +0200 |
---|---|---|
committer | Antti Sinnemaa <antti.sinnemaa@nokia.com> | 2012-01-24 13:58:27 +0200 |
commit | 4664e86672ee0242f4201ebf7e4673b16e7dc733 (patch) | |
tree | cf49ed6a91a6176187b92bab3500caa4c7ee12e1 /src | |
parent | ecb1abba3bbc7ec3c7d5c3eaf0e8907567f716d1 (diff) | |
download | qtgraphicaleffects-4664e86672ee0242f4201ebf7e4673b16e7dc733.tar.gz qtgraphicaleffects-4664e86672ee0242f4201ebf7e4673b16e7dc733.tar.bz2 qtgraphicaleffects-4664e86672ee0242f4201ebf7e4673b16e7dc733.zip |
Displace effect update
Diffstat (limited to 'src')
-rw-r--r-- | src/effects/Displace.qml | 2 |
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); |