summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/lights/PlaneEntity.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/lights/PlaneEntity.qml')
-rw-r--r--examples/qt3d/lights/PlaneEntity.qml15
1 files changed, 9 insertions, 6 deletions
diff --git a/examples/qt3d/lights/PlaneEntity.qml b/examples/qt3d/lights/PlaneEntity.qml
index 268c59add..1e84543f6 100644
--- a/examples/qt3d/lights/PlaneEntity.qml
+++ b/examples/qt3d/lights/PlaneEntity.qml
@@ -61,14 +61,17 @@ Entity {
property alias resolution: mesh.meshResolution
property Material material
- components: [ transform, mesh, root.material ]
+ components: [ transform, renderer, root.material ]
Transform { id: transform }
- PlaneMesh {
- id: mesh
- width: 1.0
- height: 1.0
- meshResolution: Qt.size(2, 2)
+ GeometryRenderer {
+ id: renderer
+ view: PlaneMesh {
+ id: mesh
+ width: 1.0
+ height: 1.0
+ meshResolution: Qt.size(2, 2)
+ }
}
}