| 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 |
CuboidMesh { |
| 13 |
id: mesh |
| 14 |
yzMeshResolution: Qt.size(2, 2) |
| 15 |
xzMeshResolution: Qt.size(2, 2) |
| 16 |
xyMeshResolution: Qt.size(2, 2) |
| 17 |
} |
| 18 |
|
| 19 |
PhongMaterial { |
| 20 |
id: phongMaterial |
| 21 |
diffuse: "yellow" |
| 22 |
} |
| 23 |
|
| 24 |
Transform { |
| 25 |
id: transform |
| 26 |
scale: 4 |
| 27 |
} |
| 28 |
} |