summaryrefslogtreecommitdiffstats
path: root/examples/demos/dice/Dice_low.qml
diff options
context:
space:
mode:
authorJonas Karlsson <jonas.karlsson@qt.io>2023-06-19 15:29:46 +0200
committerKai Köhne <kai.koehne@qt.io>2023-06-21 00:50:04 +0200
commit34ecd600380c65f65f46e9fe86cfcbb9186b20a1 (patch)
tree81860ee4510bda67acc89db0c6449830114d2c03 /examples/demos/dice/Dice_low.qml
parent3b1ca67270a97a56fe475194d6a62c45ca9c2c89 (diff)
Add the 'dice' example
Fixes: QTBUG-113600 Pick-to: 6.5 6.5.2 6.6 Change-Id: I13b8327f2dcf3e7eaec80c7c10038b22a1656df3 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
Diffstat (limited to 'examples/demos/dice/Dice_low.qml')
-rw-r--r--examples/demos/dice/Dice_low.qml37
1 files changed, 37 insertions, 0 deletions
diff --git a/examples/demos/dice/Dice_low.qml b/examples/demos/dice/Dice_low.qml
new file mode 100644
index 000000000..11f56aaaa
--- /dev/null
+++ b/examples/demos/dice/Dice_low.qml
@@ -0,0 +1,37 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+import QtQuick
+import QtQuick3D
+
+Node {
+ id: node
+
+ // Resources
+ PrincipledMaterial {
+ id: base_material
+ baseColor: "#ffb8b8b8"
+ roughness: 0.44999998807907104
+ cullMode: PrincipledMaterial.NoCulling
+ alphaMode: PrincipledMaterial.Opaque
+ }
+ PrincipledMaterial {
+ id: dots_material
+ baseColor: "#ff000000"
+ roughness: 0.15000000596046448
+ cullMode: PrincipledMaterial.NoCulling
+ alphaMode: PrincipledMaterial.Opaque
+ }
+
+ // Nodes:
+ Model {
+ id: cube_001
+ source: "meshes/cube_001.mesh"
+ materials: [
+ base_material,
+ dots_material
+ ]
+ }
+
+ // Animations:
+}