| 1 |
// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). |
| 2 |
// Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies). |
| 3 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 4 |
|
| 5 |
import Qt3D.Core 2.0 |
| 6 |
import Qt3D.Render 2.0 |
| 7 |
import Qt3D.Extras 2.0 |
| 8 |
|
| 9 |
Entity { |
| 10 |
id: sceneRoot |
| 11 |
|
| 12 |
Camera { |
| 13 |
id: camera |
| 14 |
projectionType: CameraLens.PerspectiveProjection |
| 15 |
fieldOfView: 45 |
| 16 |
aspectRatio: 16/9 |
| 17 |
nearPlane : 0.1 |
| 18 |
farPlane : 1000.0 |
| 19 |
position: Qt.vector3d( 0.0, 20.0, -120.0 ) |
| 20 |
upVector: Qt.vector3d( 0.0, 1.0, 0.0 ) |
| 21 |
viewCenter: Qt.vector3d( 0.0, 10.0, 0.0 ) |
| 22 |
} |
| 23 |
|
| 24 |
FirstPersonCameraController { camera: camera } |
| 25 |
|
| 26 |
RenderSettings { |
| 27 |
id : renderSettings |
| 28 |
activeFrameGraph : Viewport { |
| 29 |
CameraSelector { |
| 30 |
camera: camera |
| 31 |
ClearBuffers { |
| 32 |
buffers : ClearBuffers.ColorDepthBuffer |
| 33 |
clearColor: "black" |
| 34 |
SortPolicy { |
| 35 |
sortTypes: [ SortPolicy.BackToFront ] |
| 36 |
} |
| 37 |
} |
| 38 |
} |
| 39 |
} |
| 40 |
} |
| 41 |
|
| 42 |
components: [ renderSettings ] |
| 43 |
|
| 44 |
Wine { |
| 45 |
id: wineRack |
| 46 |
position: Qt.vector3d(-60.0, 0.0, 50.0) |
| 47 |
angleX: 180 |
| 48 |
} |
| 49 |
} |