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

import QtQuick
import QtQuick3D
Model {
    id: asteroid
    source: "meshes/asteroid.mesh"

    PrincipledMaterial {
        id: asteroid_material
        baseColor: "#ffe0cc"
        roughness: 0.5
        cullMode: Material.NoCulling
        alphaMode: PrincipledMaterial.Opaque
    }
    materials: [
        asteroid_material
    ]
}