tests/manual/lod/ConeEntity.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, phongMaterial, transform ] |
| 11 | |
| 12 | ConeMesh { |
| 13 | id: mesh |
| 14 | bottomRadius: 1.5 |
| 15 | length: 3 |
| 16 | } |
| 17 | |
| 18 | PhongMaterial { |
| 19 | id: phongMaterial |
| 20 | diffuse: "red" |
| 21 | } |
| 22 | |
| 23 | Transform { |
| 24 | id: transform |
| 25 | scale: 4 |
| 26 | } |
| 27 | } |