aboutsummaryrefslogtreecommitdiffstats
path: root/tests/baseline/scenegraph/data/shaders/basic/basic_alpha.qml
blob: 76db70480689ece2c7a191d36faa71a470e1e90f (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
31
32
33
import QtQuick 2.0

Item {
    width: 320
    height: 480

    Rectangle {
        color: "darkGray"
        x: 100
        y: 100
        width: 100
        height: 200
    }

    ShaderEffect {
        x: 10
        y: 10
        width: 300
        height: 200
        fragmentShader: "qrc:shaders/basic_alpha.frag.qsb"
        blending: true
    }

    ShaderEffect {
        x: 10
        y: 250
        width: 300
        height: 200
        fragmentShader: "qrc:shaders/basic_alpha.frag.qsb"
        blending: false
    }

}