tests/manual/wave/BasicCamera.qml
raw| 1 | // Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | import Qt3D.Core 2.0 |
| 5 | import Qt3D.Render 2.0 |
| 6 | |
| 7 | Camera { |
| 8 | id: mainCamera |
| 9 | projectionType: CameraLens.PerspectiveProjection |
| 10 | fieldOfView: 22.5 |
| 11 | aspectRatio: _window.width / _window.height |
| 12 | nearPlane: 0.01 |
| 13 | farPlane: 1000.0 |
| 14 | viewCenter: Qt.vector3d( 0.0, 0.0, 0.0 ) |
| 15 | upVector: Qt.vector3d( 0.0, 1.0, 0.0 ) |
| 16 | } |