summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/lights
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/lights')
-rw-r--r--examples/qt3d/lights/PlaneEntity.qml15
-rw-r--r--examples/qt3d/lights/main.qml18
2 files changed, 12 insertions, 21 deletions
diff --git a/examples/qt3d/lights/PlaneEntity.qml b/examples/qt3d/lights/PlaneEntity.qml
index 1e84543f6..268c59add 100644
--- a/examples/qt3d/lights/PlaneEntity.qml
+++ b/examples/qt3d/lights/PlaneEntity.qml
@@ -61,17 +61,14 @@ Entity {
property alias resolution: mesh.meshResolution
property Material material
- components: [ transform, renderer, root.material ]
+ components: [ transform, mesh, root.material ]
Transform { id: transform }
- GeometryRenderer {
- id: renderer
- view: PlaneMesh {
- id: mesh
- width: 1.0
- height: 1.0
- meshResolution: Qt.size(2, 2)
- }
+ PlaneMesh {
+ id: mesh
+ width: 1.0
+ height: 1.0
+ meshResolution: Qt.size(2, 2)
}
}
diff --git a/examples/qt3d/lights/main.qml b/examples/qt3d/lights/main.qml
index c647788fe..fc7cca42c 100644
--- a/examples/qt3d/lights/main.qml
+++ b/examples/qt3d/lights/main.qml
@@ -95,10 +95,8 @@ Entity
Entity {
id: redLight
components: [
- GeometryRenderer {
- view: SphereMesh {
- radius: 2
- }
+ SphereMesh {
+ radius: 2
},
Transform {
translation: Qt.vector3d(2.0, 8.0, -2.0)
@@ -120,10 +118,8 @@ Entity
Entity {
id: greenLight
components: [
- GeometryRenderer {
- view: SphereMesh {
- radius: 2
- }
+ SphereMesh {
+ radius: 2
},
Transform {
translation: Qt.vector3d(0.0, 3.0, 4.0)
@@ -145,10 +141,8 @@ Entity
Entity {
id: spotLight
components: [
- GeometryRenderer {
- view: SphereMesh {
- radius: 2
- }
+ SphereMesh {
+ radius: 2
},
Transform {
translation: Qt.vector3d(-20.0, 40.0, 0.0)