diff options
author | Jonas Karlsson <jonas.karlsson@qt.io> | 2023-06-19 15:29:46 +0200 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2023-06-21 00:50:04 +0200 |
commit | 34ecd600380c65f65f46e9fe86cfcbb9186b20a1 (patch) | |
tree | 81860ee4510bda67acc89db0c6449830114d2c03 /examples/demos/dice/Carpet.qml | |
parent | 3b1ca67270a97a56fe475194d6a62c45ca9c2c89 (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.qml | 51 |
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 + ] + } + } +} |