summaryrefslogtreecommitdiffstats
path: root/examples/demos/dice/Carpet.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/Carpet.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/Carpet.qml')
-rw-r--r--examples/demos/dice/Carpet.qml51
1 files changed, 51 insertions, 0 deletions
diff --git a/examples/demos/dice/Carpet.qml b/examples/demos/dice/Carpet.qml
new file mode 100644
index 000000000..98253c171
--- /dev/null
+++ b/examples/demos/dice/Carpet.qml
@@ -0,0 +1,51 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+import QtQuick
+import QtQuick3D
+
+Node {
+ id: sketchfab_model
+ rotation: Qt.quaternion(0.707107, -0.707107, 0, 0)
+
+ Node {
+ id: round_carpet_obj_cleaner_materialmerger_gles
+
+ Model {
+ id: object_2
+ source: "meshes/object_2.mesh"
+
+ PrincipledMaterial {
+ id: carpet_texture_material
+ baseColorMap: Texture {
+ source: "maps/carpet_texture_baseColor.jpeg"
+ tilingModeHorizontal: Texture.Repeat
+ tilingModeVertical: Texture.Repeat
+ }
+ opacityChannel: Material.A
+ metalness: 0
+ roughness: 1
+ cullMode: Material.NoCulling
+ }
+ materials: [
+ carpet_texture_material
+ ]
+ }
+
+ Model {
+ id: object_3
+ source: "meshes/object_3.mesh"
+
+ PrincipledMaterial {
+ id: contour_material
+ baseColor: "#ff1b0a05"
+ metalness: 0
+ roughness: 0.983808
+ cullMode: Material.NoCulling
+ }
+ materials: [
+ contour_material
+ ]
+ }
+ }
+}