blob: 9fb10b76c2b9c5f8e194de04fa8035c92aff0553 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick3D
import QtQuick
Rectangle {
id: orthographic_camera
width: 800
height: 480
color: Qt.rgba(0, 0, 0, 1)
View3D {
id: left
anchors.left: parent.left
anchors.top: parent.top
anchors.bottom: parent.bottom
width: parent.width / 2
camera: OrthographicCamera {
z: 500
}
Model {
source: "#Sphere"
materials: PrincipledMaterial {
baseColor: "green"
lighting: PrincipledMaterial.NoLighting
}
}
}
View3D {
id: right
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.right: parent.right
anchors.left: left.right
camera: OrthographicCamera {
z: 500
visible: false
}
Model {
source: "#Cube"
materials: PrincipledMaterial {
baseColor: "red"
lighting: PrincipledMaterial.NoLighting
}
}
}
}
|