diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2015-11-11 11:29:15 +0000 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2015-11-20 16:34:14 +0000 |
commit | ba3e89e4b609d19b0607d2cb1cdf13b83f6cd984 (patch) | |
tree | 017a00ab9308fc635e59bc050c00a32207079587 /examples/qt3d/shadow-map-qml | |
parent | 3d1727dc60e9c9a72160e785243a7be7a68fc60e (diff) |
Adapt examples to use no args form of Qt.matrix4x4()
Change-Id: If289d74601e2244d4175ba6b1ea3eb95df0bd50b
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/shadow-map-qml')
-rw-r--r-- | examples/qt3d/shadow-map-qml/Toyplane.qml | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/qt3d/shadow-map-qml/Toyplane.qml b/examples/qt3d/shadow-map-qml/Toyplane.qml index 1f883f2bb..56ca11886 100644 --- a/examples/qt3d/shadow-map-qml/Toyplane.qml +++ b/examples/qt3d/shadow-map-qml/Toyplane.qml @@ -59,10 +59,7 @@ Entity { QQ2.Behavior on rollAngle { QQ2.SpringAnimation { spring: 2; damping: 0.2} } matrix: { - var m = Qt.matrix4x4(1, 0, 0, 0, - 0, 1, 0, 0, - 0, 0, 1, 0, - 0, 0, 0, 1); + var m = Qt.matrix4x4(); m.translate(Qt.vector3d(Math.sin(angle * Math.PI / 180) * scaleFactor, altitude, Math.cos(angle * Math.PI / 180) * scaleFactor)); |