summaryrefslogtreecommitdiffstats
path: root/src/graphs3d/qml/resources/VolumeSliceMaterial.qml
blob: 4f92517d7e518a95241d212f83e34c52409ece4b (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
25
// 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 vector3d volumeSliceIndices;
    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/texture3dslicefrag"
}