diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-05-19 08:26:42 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-05-19 08:26:42 +0200 |
commit | 3bd8c30c8154470c9b564b85ff69787f5a2eca4f (patch) | |
tree | 3c6bf19969dbd91a17ce919dc86027457e34c597 | |
parent | d7aaf421fc38c257785d005498c6332e9ef7673c (diff) |
Rotated slide deck launcher and fixed a shader bug
-rw-r--r-- | EffectSlide/ShaderDemo.qml | 2 | ||||
-rw-r--r-- | SlideDeckRotated.qml | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/EffectSlide/ShaderDemo.qml b/EffectSlide/ShaderDemo.qml index f65453e..e659f9d 100644 --- a/EffectSlide/ShaderDemo.qml +++ b/EffectSlide/ShaderDemo.qml @@ -149,7 +149,7 @@ Item { uniform sampler2D source; uniform highp vec2 delta; varying highp vec2 qt_TexCoord0; - uniform float lowp qt_Opacity; + uniform lowp float qt_Opacity; void main() { gl_FragColor = (0.0538 * texture2D(source, qt_TexCoord0 - 3.182 * delta) + 0.3229 * texture2D(source, qt_TexCoord0 - 1.364 * delta) diff --git a/SlideDeckRotated.qml b/SlideDeckRotated.qml new file mode 100644 index 0000000..a688fc9 --- /dev/null +++ b/SlideDeckRotated.qml @@ -0,0 +1,15 @@ +import QtQuick 2.0 + +Item +{ + height: 640 + width: 360 + Item { + rotation: 90 + SlideDeck { + y: -360 + width: 640 + height: 360 + } + } +} |