summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/clip-planes-qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/clip-planes-qml/main.qml')
-rw-r--r--examples/qt3d/clip-planes-qml/main.qml17
1 files changed, 11 insertions, 6 deletions
diff --git a/examples/qt3d/clip-planes-qml/main.qml b/examples/qt3d/clip-planes-qml/main.qml
index 06fd5bf14..f0736a3a0 100644
--- a/examples/qt3d/clip-planes-qml/main.qml
+++ b/examples/qt3d/clip-planes-qml/main.qml
@@ -37,6 +37,7 @@
import QtQuick 2.4 as QQ2
import Qt3D.Core 2.0
import Qt3D.Render 2.0
+import Qt3D.Input 2.0
Entity {
id: root
@@ -55,12 +56,16 @@ Entity {
FirstPersonCameraController { camera: camera }
- components: FrameGraph {
- ClipCappingFrameGraph {
- camera: camera;
- clearColor: Qt.rgba(0.0, 0.5, 1, 1)
- }
- }
+ components: [
+ FrameGraph {
+ ClipCappingFrameGraph {
+ camera: camera;
+ clearColor: Qt.rgba(0.0, 0.5, 1, 1)
+ }
+ },
+ // Event Source will be set by the Qt3DQuickWindow
+ InputSettings { }
+ ]
ClipMaterialEffect {
id: clipMaterialEffect