summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/materials/Barrel.qml
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2015-11-07 19:02:14 +0000
committerPaul Lemire <paul.lemire@kdab.com>2015-11-17 19:41:18 +0000
commit26a118cfbce29014864f6cdddae66cccb65ffb4f (patch)
treedaea9f2fc41c1df586c35cd56daa61f920ce5b58 /examples/qt3d/materials/Barrel.qml
parentace675a084ab944a245500b9f54be653126c3147 (diff)
Remove transforms property of QTransform
Compound transformations are now built up using QMatrix4x4 in both QML and C++. Updating examples accordingly. Change-Id: I03c9abf1f6cdd1b56226dc0e16a7ad5ce84516dd Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/materials/Barrel.qml')
-rw-r--r--examples/qt3d/materials/Barrel.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/qt3d/materials/Barrel.qml b/examples/qt3d/materials/Barrel.qml
index ba703a998..02a7e4812 100644
--- a/examples/qt3d/materials/Barrel.qml
+++ b/examples/qt3d/materials/Barrel.qml
@@ -44,9 +44,9 @@ Entity {
property string bump: "no_bumps"
property string specular: ""
- property alias x: barrel.x
- property alias y: barrel.y
- property alias z: barrel.z
+ property real x: 0
+ property real y: 0
+ property real z: 0
property alias shininess: material.shininess
property real scale: 1.0
@@ -54,6 +54,7 @@ Entity {
id: barrel
source: "assets/metalbarrel/metal_barrel.obj"
scale: 0.03 * root.scale
+ position: Qt.vector3d(root.x, root.y, root.z)
material: NormalDiffuseSpecularMapMaterial {
id: material