summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2016-07-09 21:32:56 +0100
committerSean Harmer <sean.harmer@kdab.com>2016-07-12 19:15:40 +0000
commit80f0e379b3fdce0ae77ba31bf2b9fa97c6687d97 (patch)
tree962fafe0491e5555cb7c94b7ed1930b0b9352037 /examples
parent2bdc7cb6b1a8acea1bf04ed18f4ab04f64c7e834 (diff)
Lights: Use PhongMaterial now default material is gone
Change-Id: I51d8068d9f910981db89fc26e4bd29b928faad56 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/qt3d/lights/main.qml12
1 files changed, 9 insertions, 3 deletions
diff --git a/examples/qt3d/lights/main.qml b/examples/qt3d/lights/main.qml
index d16df0795..0d9b2b182 100644
--- a/examples/qt3d/lights/main.qml
+++ b/examples/qt3d/lights/main.qml
@@ -70,9 +70,6 @@ Entity
id: camera
projectionType: CameraLens.PerspectiveProjection
fieldOfView: 45
- aspectRatio: 16/9
- nearPlane : 0.1
- farPlane : 1000.0
position: Qt.vector3d( 0.0, 40.0, 300.0 )
upVector: Qt.vector3d( 0.0, 1.0, 0.0 )
viewCenter: Qt.vector3d( 0.0, -10.0, -1.0 )
@@ -109,6 +106,9 @@ Entity
Quick.NumberAnimation { from: 40.0; to: 8.0; duration: 3000 }
}
},
+ PhongMaterial {
+ diffuse: "red"
+ },
PointLight {
color: Qt.rgba(1, 0, 0, 1)
}
@@ -129,6 +129,9 @@ Entity
Quick.NumberAnimation { from: 40.0; to: 4.0; duration: 5000 }
}
},
+ PhongMaterial {
+ diffuse: "green"
+ },
PointLight {
color: Qt.rgba(0, 1, 0, 1)
}
@@ -144,6 +147,9 @@ Entity
Transform {
translation: Qt.vector3d(-5.0, 40.0, -5.0)
},
+ PhongMaterial {
+ diffuse: "white"
+ },
SpotLight {
localDirection: Qt.vector3d(1.0, -4.0, 0.0)
Quick.SequentialAnimation on localDirection.x {