tests/manual/lod/SphereEntity.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 QtQuick 2.4 as QQ2 |
| 5 | import Qt3D.Core 2.0 |
| 6 | import Qt3D.Render 2.0 |
| 7 | import Qt3D.Extras 2.0 |
| 8 | |
| 9 | Entity { |
| 10 | components: [ mesh, material, transform ] |
| 11 | |
| 12 | SphereMesh { |
| 13 | id: mesh |
| 14 | radius: 1 |
| 15 | } |
| 16 | |
| 17 | PhongMaterial { |
| 18 | id: material |
| 19 | diffuse: "blue" |
| 20 | } |
| 21 | |
| 22 | Transform { |
| 23 | id: transform |
| 24 | scale: 4 |
| 25 | } |
| 26 | } |