blob: e2ce662aac6eaacface924b2d68cbe3258f04a5c (
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
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
//
import QtQuick
import QtQuick.Layouts
import QtQuick3D.Helpers
import QtQuick3D
import QtQuick3D.Xr
Node {
DirectionalLight {
}
Model {
source: "#Cube"
materials: PrincipledMaterial {
baseColor: "green"
}
position: Qt.vector3d(25, 0, 0)
scale: Qt.vector3d(0.5, 0.5, 0.5)
}
Model {
source: "#Sphere"
materials: PrincipledMaterial {
baseColor: "blue"
}
position: Qt.vector3d(-25, 0, 0)
scale: Qt.vector3d(0.5, 0.5, 0.5)
}
}
|