diff options
Diffstat (limited to 'tests/manual/scenegraph_lancelot/data/shaders/propertyanimation/property.qml')
-rw-r--r-- | tests/manual/scenegraph_lancelot/data/shaders/propertyanimation/property.qml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/manual/scenegraph_lancelot/data/shaders/propertyanimation/property.qml b/tests/manual/scenegraph_lancelot/data/shaders/propertyanimation/property.qml new file mode 100644 index 0000000000..c58380aca8 --- /dev/null +++ b/tests/manual/scenegraph_lancelot/data/shaders/propertyanimation/property.qml @@ -0,0 +1,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" + } + + ShaderEffect { + x: 10 + y: 250 + width: 300 + height: 200 + property real colorProperty: 0.0 + fragmentShader: "qrc:shaders/property.frag" + + NumberAnimation on colorProperty { + duration: 200 + from: 0.0 + to: 1.0 + } + } +} |