aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/scenegraph_lancelot/data/shaders/propertyanimation/property.qml
blob: 5978564247861ceedeb9b1167512fde94ef641e8 (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
26
27
28
29
30
import QtQuick 2.0

Item {
    width: 320
    height: 480

    ShaderEffect {
        x: 10
        y: 10
        width: 300
        height: 200
        property real colorProperty: 0.5
        fragmentShader: "qrc:shaders/property.frag.qsb"
    }

    ShaderEffect {
        x: 10
        y: 250
        width: 300
        height: 200
        property real colorProperty: 0.0
        fragmentShader: "qrc:shaders/property.frag.qsb"

        NumberAnimation on colorProperty {
            duration: 200
            from: 0.0
            to: 1.0
        }
    }
}