blob: cbe299fbb510c85101e412f0966c53002200da67 (
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
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQuick3D
Model {
id: lazer
source: "lazer.mesh"
scale: Qt.vector3d(100, 100, 100)
property bool enableBeam: true
PrincipledMaterial {
id: material_001_material
baseColorMap: Texture {
source: "Lazer_baseColor.png"
generateMipmaps: true
mipFilter: Texture.Linear
}
opacityChannel: Material.A
metalnessMap: Texture {
source: "Lazer_metalness.png"
generateMipmaps: true
mipFilter: Texture.Linear
}
metalnessChannel: Material.B
roughnessMap: Texture {
source: "Lazer_metalness.png"
generateMipmaps: true
mipFilter: Texture.Linear
}
roughnessChannel: Material.G
metalness: 1
roughness: 0.304545
alphaMode: PrincipledMaterial.Opaque
lighting: PrincipledMaterial.NoLighting
}
materials: [
material_001_material
]
Beam {
visible: lazer.enableBeam
}
}
|