summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/clip-planes-qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/clip-planes-qml')
-rw-r--r--examples/qt3d/clip-planes-qml/ClipCappingFrameGraph.qml2
-rw-r--r--examples/qt3d/clip-planes-qml/ClipPlaneEntity.qml1
-rw-r--r--examples/qt3d/clip-planes-qml/ClippingPlanes.qml1
-rw-r--r--examples/qt3d/clip-planes-qml/clip-planes-qml.pro2
4 files changed, 5 insertions, 1 deletions
diff --git a/examples/qt3d/clip-planes-qml/ClipCappingFrameGraph.qml b/examples/qt3d/clip-planes-qml/ClipCappingFrameGraph.qml
index fb03341cb..5af9be195 100644
--- a/examples/qt3d/clip-planes-qml/ClipCappingFrameGraph.qml
+++ b/examples/qt3d/clip-planes-qml/ClipCappingFrameGraph.qml
@@ -54,6 +54,7 @@ import Qt3D.Render 2.0
Viewport {
property alias camera: cameraSelector.camera
property alias window: surfaceSelector.surface
+ property alias clearColor: clearBuffer.clearColor
RenderSurfaceSelector {
id: surfaceSelector
@@ -76,6 +77,7 @@ Viewport {
// Fills depth buffer for entities that are clipped
layers: ["content", "visualization"]
ClearBuffers {
+ id: clearBuffer
buffers: ClearBuffers.ColorDepthBuffer
RenderPassFilter {
matchAny: FilterKey { name: "pass"; value: "material" }
diff --git a/examples/qt3d/clip-planes-qml/ClipPlaneEntity.qml b/examples/qt3d/clip-planes-qml/ClipPlaneEntity.qml
index d3cac2c81..e70177c6d 100644
--- a/examples/qt3d/clip-planes-qml/ClipPlaneEntity.qml
+++ b/examples/qt3d/clip-planes-qml/ClipPlaneEntity.qml
@@ -50,6 +50,7 @@
import Qt3D.Core 2.0
import Qt3D.Render 2.0
+import Qt3D.Extras 2.0
Entity {
id: root
diff --git a/examples/qt3d/clip-planes-qml/ClippingPlanes.qml b/examples/qt3d/clip-planes-qml/ClippingPlanes.qml
index 28f526955..c1dd905f3 100644
--- a/examples/qt3d/clip-planes-qml/ClippingPlanes.qml
+++ b/examples/qt3d/clip-planes-qml/ClippingPlanes.qml
@@ -51,6 +51,7 @@
import QtQuick 2.4 as QQ2
import Qt3D.Core 2.0
import Qt3D.Render 2.0
+import Qt3D.Extras 2.0
Entity {
id: root
diff --git a/examples/qt3d/clip-planes-qml/clip-planes-qml.pro b/examples/qt3d/clip-planes-qml/clip-planes-qml.pro
index 5ecc28ca7..81500e4ce 100644
--- a/examples/qt3d/clip-planes-qml/clip-planes-qml.pro
+++ b/examples/qt3d/clip-planes-qml/clip-planes-qml.pro
@@ -2,7 +2,7 @@
error( "Couldn't find the examples.pri file!" )
}
-QT += qml quick 3dcore 3drender 3dinput 3dquick
+QT += qml quick 3dcore 3drender 3dinput 3dquick 3dextras
SOURCES += main.cpp