From 80f0e379b3fdce0ae77ba31bf2b9fa97c6687d97 Mon Sep 17 00:00:00 2001 From: Sean Harmer Date: Sat, 9 Jul 2016 21:32:56 +0100 Subject: Lights: Use PhongMaterial now default material is gone Change-Id: I51d8068d9f910981db89fc26e4bd29b928faad56 Reviewed-by: Paul Lemire --- examples/qt3d/lights/main.qml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'examples') 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 { -- cgit v1.2.3