diff options
Diffstat (limited to 'examples/multiviewport/main.qml')
-rw-r--r-- | examples/multiviewport/main.qml | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/examples/multiviewport/main.qml b/examples/multiviewport/main.qml index 7e2b903f9..c570df8d8 100644 --- a/examples/multiviewport/main.qml +++ b/examples/multiviewport/main.qml @@ -90,29 +90,32 @@ Entity { id : mainViewport rect: Qt.rect(0, 0, 1, 1) + ClearBuffer { + buffers : ClearBuffer.ColorDepthBuffer - Viewport { - id : topLeftViewport - rect : Qt.rect(0, 0, 0.5, 0.5) - CameraSelector {id : cameraSelectorTopLeftViewport; camera : sceneRoot.cameras[0]} - } + Viewport { + id : topLeftViewport + rect : Qt.rect(0, 0, 0.5, 0.5) + CameraSelector {id : cameraSelectorTopLeftViewport; camera : sceneRoot.cameras[0]} + } - Viewport { - id : topRightViewport - rect : Qt.rect(0.5, 0, 0.5, 0.5) - CameraSelector {id : cameraSelectorTopRightViewport;camera : sceneRoot.cameras[1]} - } + Viewport { + id : topRightViewport + rect : Qt.rect(0.5, 0, 0.5, 0.5) + CameraSelector {id : cameraSelectorTopRightViewport;camera : sceneRoot.cameras[1]} + } - Viewport { - id : bottomLeftViewport - rect : Qt.rect(0, 0.5, 0.5, 0.5) - CameraSelector {id : cameraSelectorBottomLeftViewport; camera : sceneRoot.cameras[2]} - } + Viewport { + id : bottomLeftViewport + rect : Qt.rect(0, 0.5, 0.5, 0.5) + CameraSelector {id : cameraSelectorBottomLeftViewport; camera : sceneRoot.cameras[2]} + } - Viewport { - id : bottomRightViewport - rect : Qt.rect(0.5, 0.5, 0.5, 0.5) - CameraSelector {id : cameraSelectorBottomRightViewport; camera : sceneRoot.cameras[3]} + Viewport { + id : bottomRightViewport + rect : Qt.rect(0.5, 0.5, 0.5, 0.5) + CameraSelector {id : cameraSelectorBottomRightViewport; camera : sceneRoot.cameras[3]} + } } } // mainViewport } // frameGraph |