tests/manual/scenegraph_lancelot/data/shaders/propertyanimation/property.qml
raw| 1 | import QtQuick 2.0 |
| 2 | |
| 3 | Item { |
| 4 | width: 320 |
| 5 | height: 480 |
| 6 | |
| 7 | ShaderEffect { |
| 8 | x: 10 |
| 9 | y: 10 |
| 10 | width: 300 |
| 11 | height: 200 |
| 12 | property real colorProperty: 0.5 |
| 13 | fragmentShader: "qrc:shaders/property.frag" |
| 14 | } |
| 15 | |
| 16 | ShaderEffect { |
| 17 | x: 10 |
| 18 | y: 250 |
| 19 | width: 300 |
| 20 | height: 200 |
| 21 | property real colorProperty: 0.0 |
| 22 | fragmentShader: "qrc:shaders/property.frag" |
| 23 | |
| 24 | NumberAnimation on colorProperty { |
| 25 | duration: 200 |
| 26 | from: 0.0 |
| 27 | to: 1.0 |
| 28 | } |
| 29 | } |
| 30 | } |