summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2016-01-21 09:50:07 +0100
committerPaul Lemire <paul.lemire@kdab.com>2016-01-23 07:43:54 +0000
commit481ea264a77b1690d2d3340cab02afcd3586481b (patch)
tree66903f05ac41a668283aeafd0c0dd1fc8d07142a /examples
parent5e6c8486feeb5080a13ff07e530174c5684dc405 (diff)
clip-planes-qml: add QInputSettings component
Change-Id: Ica07a94d1467f8230400d7e862495268f95f9b6a Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples')
-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