Change-Id: I6f5b96f904a112af2e8aaf6763de4bd89ea454d5
@@ -29,7 +29,10 @@ Rectangle {
sourceSize.width: width
Behavior on opacity {
- NumberAnimation { duration: 1000 }
+ SequentialAnimation {
+ ScriptAction { script: root.effect !== undefined ? root.effect.scheduleUpdate() : undefined }
+ NumberAnimation { duration: 1000 }
+ }
}
onStatusChanged: {
@@ -8,6 +8,8 @@ Item {
property string effect: "Random"
property var effectObject
+ function scheduleUpdate() { effectSource.scheduleUpdate() }
+
anchors.fill: target
ShaderEffectSource {
@@ -15,6 +17,7 @@ Item {
smooth: true
hideSource: true
sourceItem: target
+ live: false
Component.onCompleted: {
@@ -51,7 +51,7 @@
import QtQuick 2.5
Effect {
- property real grid: 30.0
+ property real grid: 15.0
property real step_x: 0.0015625
property real step_y: targetHeight ? (step_x * targetWidth / targetHeight) : 0.0
@@ -57,6 +57,8 @@ ShaderEffect {
property string fragmentShaderFilename
property string vertexShaderFilename
+ blending: false
QtObject {
id: d
property string fragmentShaderCommon: "