aboutsummaryrefslogtreecommitdiffstats
path: root/tests/baseline/scenegrabber_xr/testscenes/depthtexture.qml
blob: 5e7d650f0d3b8815910d6fda083407751677413d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick
import QtQuick3D

Node {
    property vector3d qmlxr_originPosition: Qt.vector3d(0, 200, 300)
    property vector3d qmlxr_originRotation: Qt.vector3d(-30, 0, 0)
    Model {
        source: "#Sphere"
        scale: Qt.vector3d(3, 3, 3)
        materials: [ CustomMaterial {
                cullMode: Material.NoCulling
                shadingMode: CustomMaterial.Unshaded
                vertexShader: "custom_unshaded_depth.vert"
                fragmentShader: "custom_unshaded_depth.frag"
            } ]
    }
}