summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/clip-planes-qml/main.qml
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@kdab.com>2016-05-06 08:48:50 +0200
committerSean Harmer <sean.harmer@kdab.com>2016-05-06 08:10:22 +0000
commitcd78eba29314415c28bded4ded9db783480cd004 (patch)
treed2c6ffffdedc986db7317f4f2d2f22400d2ee1fe /examples/qt3d/clip-planes-qml/main.qml
parent81020db255f0d35289ccc62370bcd60e829ddd0f (diff)
Port missing examples to the new Layer(Filter) API
Note that the deferred-renderer-qml example never worked for me so I can't completely confirm if it is repaired or not. Change-Id: I8d39e69b755b25cc018dbefc22244af9bb621735 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/qt3d/clip-planes-qml/main.qml')
-rw-r--r--examples/qt3d/clip-planes-qml/main.qml9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/qt3d/clip-planes-qml/main.qml b/examples/qt3d/clip-planes-qml/main.qml
index 83557cbd6..4ab043285 100644
--- a/examples/qt3d/clip-planes-qml/main.qml
+++ b/examples/qt3d/clip-planes-qml/main.qml
@@ -74,6 +74,7 @@ Entity {
components: [
RenderSettings {
ClipCappingFrameGraph {
+ id: frameGraph
camera: camera;
clearColor: Qt.rgba(0.0, 0.5, 1, 1)
}
@@ -89,6 +90,8 @@ Entity {
ClippingPlanes {
id: clippingPlanes
+ visualizationLayer: frameGraph.visualizationLayer
+ capsLayer: frameGraph.contentLayer
}
// Entity being clipped
@@ -112,10 +115,6 @@ Entity {
scale: 3
}
- property Layer layer: Layer {
- names: "content"
- }
-
- components: [material, transform, mesh, layer]
+ components: [material, transform, mesh, frameGraph.contentLayer]
}
}