summaryrefslogtreecommitdiffstats
path: root/examples/video/qmlvideofx/qml/qmlvideofx/EffectSobelEdgeDetection2.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/video/qmlvideofx/qml/qmlvideofx/EffectSobelEdgeDetection2.qml')
-rw-r--r--examples/video/qmlvideofx/qml/qmlvideofx/EffectSobelEdgeDetection2.qml15
1 files changed, 8 insertions, 7 deletions
diff --git a/examples/video/qmlvideofx/qml/qmlvideofx/EffectSobelEdgeDetection2.qml b/examples/video/qmlvideofx/qml/qmlvideofx/EffectSobelEdgeDetection2.qml
index 5061b2852..f0b6744db 100644
--- a/examples/video/qmlvideofx/qml/qmlvideofx/EffectSobelEdgeDetection2.qml
+++ b/examples/video/qmlvideofx/qml/qmlvideofx/EffectSobelEdgeDetection2.qml
@@ -42,14 +42,15 @@
import QtQuick 2.0
Effect {
- // Constant properties which must be supported by every effect
- property int numParameters: 1
- property bool supportsDivider: true
+ parameters: ListModel {
+ ListElement {
+ name: "threshold"
+ value: 0.5
+ }
+ }
- property real param1Value: 0.5
- property real dividerValue: 0.5
-
- property real weight: param1Value
+ // Transform slider values, and bind result to shader uniforms
+ property real weight: parameters.get(0).value
fragmentShaderFilename: "shaders/sobeledgedetection2.fsh"
}