aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick3d/orderindependenttransparency/FireStone.qml
blob: 825c4939cf6fad5bafcf2503ece291ec01b6b4cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import QtQuick
import QtQuick3D

Model {
    source: "meshes/block.mesh"
    property real stoneSize : 1
    property real stoneRotationY : 0
    property real stoneRotationZ : 0
    scale: Qt.vector3d(stoneSize * 15, stoneSize * 15, stoneSize * 15)
    eulerRotation: Qt.vector3d(90, stoneRotationY, stoneRotationZ)
    materials: [
        PrincipledMaterial {
            baseColorMap: Texture {
                source: "images/firestone.png"
            }
        }
    ]
}