blob: 25b7a73b3f25db57d4f4194d80079ea78d6bc82e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick3D
import QtQuick
CustomMaterial {
property vector3d minBounds
property vector3d maxBounds
property TextureInput textureSampler: TextureInput {}
property TextureInput colorSampler: TextureInput {}
property int color8Bit
property vector3d textureDimensions
property int sampleCount
property real alphaMultiplier
property int preserveOpacity
property bool useOrtho
shadingMode: CustomMaterial.Unshaded
sourceBlend: CustomMaterial.SrcAlpha
destinationBlend: CustomMaterial.OneMinusSrcAlpha
vertexShader: "qrc:/shaders/texture3dvert"
fragmentShader: "qrc:/shaders/texture3dfrag"
}
|