summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/wave/Background.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/wave/Background.qml')
-rw-r--r--examples/qt3d/wave/Background.qml12
1 files changed, 8 insertions, 4 deletions
diff --git a/examples/qt3d/wave/Background.qml b/examples/qt3d/wave/Background.qml
index 64468209b..7c6ed4952 100644
--- a/examples/qt3d/wave/Background.qml
+++ b/examples/qt3d/wave/Background.qml
@@ -34,9 +34,9 @@
**
****************************************************************************/
+import QtQuick 2.1 as QQ2
import Qt3D.Core 2.0
import Qt3D.Render 2.0
-import QtQuick 2.1 as QQ2
Entity {
id: root
@@ -72,9 +72,13 @@ Entity {
Transform {
// Rotate the plane so that it faces us
- Rotate {
- axis: Qt.vector3d( 1.0, 0.0, 0.0 )
- angle: 90
+ matrix: {
+ var m = Qt.matrix4x4(1, 0, 0, 0,
+ 0, 1, 0, 0,
+ 0, 0, 1, 0,
+ 0, 0, 0, 1);
+ m.rotate(90, Qt.vector3d(1, 0, 0));
+ return m;
}
},