diff options
Diffstat (limited to 'examples/qt3d/shadow-map-qml/Trefoil.qml')
-rw-r--r-- | examples/qt3d/shadow-map-qml/Trefoil.qml | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/qt3d/shadow-map-qml/Trefoil.qml b/examples/qt3d/shadow-map-qml/Trefoil.qml index 4691adbd3..315e23a8f 100644 --- a/examples/qt3d/shadow-map-qml/Trefoil.qml +++ b/examples/qt3d/shadow-map-qml/Trefoil.qml @@ -50,14 +50,7 @@ Entity { Transform { id: trefoilMeshTransform property real userAngle: 0.0 - matrix: { - var m = Qt.matrix4x4(1, 0, 0, 0, - 0, 1, 0, 0, - 0, 0, 1, 0, - 0, 0, 0, 1); - m.rotate(userAngle, Qt.vector3d(0, 1, 0)); - return m; - } + rotation: fromAxisAndAngle(Qt.vector3d(0, 1, 0), userAngle) } QQ2.NumberAnimation { |