tests/benchmarks/Qt3DBench/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 | |
| 7 | Entity { |
| 8 | id: root |
| 9 | property Material material |
| 10 | |
| 11 | PlaneMesh { |
| 12 | id: groundMesh |
| 13 | width: 50 |
| 14 | height: width |
| 15 | meshResolution: Qt.size(2, 2) |
| 16 | } |
| 17 | |
| 18 | Transform { |
| 19 | id: groundTransform |
| 20 | Translate { |
| 21 | dy: -14 |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | components: [ |
| 26 | groundMesh, |
| 27 | groundTransform, |
| 28 | material |
| 29 | ] |
| 30 | } |