summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--EffectSlide/ShaderDemo.qml2
-rw-r--r--SlideDeckRotated.qml15
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
+ }
+ }
+}