Debian Codegraph @

tests/manual/shadow-map-qml/GroundPlane.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 import Qt3D.Extras 2.0
7
8 Entity {
9 id: root
10 property Material material
11
12 PlaneMesh {
13 id: groundMesh
14 width: 50
15 height: width
16 meshResolution: Qt.size(2, 2)
17 }
18
19 Transform {
20 id: groundTransform
21 translation: Qt.vector3d(0, -5, 0)
22 }
23
24 components: [
25 groundMesh,
26 groundTransform,
27 material
28 ]
29 }