tests/manual/scenegraph_lancelot/data/shaders/basic/basic_alpha.qml
raw| 1 | import QtQuick 2.0 |
| 2 | |
| 3 | Item { |
| 4 | width: 320 |
| 5 | height: 480 |
| 6 | |
| 7 | Rectangle { |
| 8 | color: "darkGray" |
| 9 | x: 100 |
| 10 | y: 100 |
| 11 | width: 100 |
| 12 | height: 200 |
| 13 | } |
| 14 | |
| 15 | ShaderEffect { |
| 16 | x: 10 |
| 17 | y: 10 |
| 18 | width: 300 |
| 19 | height: 200 |
| 20 | fragmentShader: "qrc:shaders/basic_alpha.frag" |
| 21 | blending: true |
| 22 | } |
| 23 | |
| 24 | ShaderEffect { |
| 25 | x: 10 |
| 26 | y: 250 |
| 27 | width: 300 |
| 28 | height: 200 |
| 29 | fragmentShader: "qrc:shaders/basic_alpha.frag" |
| 30 | blending: false |
| 31 | } |
| 32 | |
| 33 | } |