aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects/AdditiveColorGradient.qml
blob: ae97783cf4e581de2fa61ae0808929efb8c23f71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick
import QtQuick3D

Effect {
    property vector3d bottomColor: Qt.vector3d(0.0, 0.0, 0.0)
    property vector3d topColor: Qt.vector3d(1.0, 1.0, 1.0)

    Shader {
        id: additivecolorgradient
        stage: Shader.Fragment
        shader: "qrc:/qtquick3deffects/shaders/additivecolorgradient.frag"
    }

    passes: [
        Pass {
            shaders: [ additivecolorgradient ]
        }
    ]
}