| 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 |
objectName: "mainCamera" |
| 10 |
projectionType: CameraLens.PerspectiveProjection |
| 11 |
fieldOfView: 22.5 |
| 12 |
aspectRatio: _window.width / _window.height |
| 13 |
onAspectRatioChanged: console.log( "aspectRatio = " + aspectRatio ) |
| 14 |
nearPlane: 0.01 |
| 15 |
farPlane: 1000.0 |
| 16 |
viewCenter: Qt.vector3d( 0.0, 0.0, 0.0 ) |
| 17 |
upVector: Qt.vector3d( 0.0, 1.0, 0.0 ) |
| 18 |
} |