summaryrefslogtreecommitdiffstats
path: root/examples/video/qmlvideofx/qml/qmlvideofx/EffectBlackAndWhite.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/video/qmlvideofx/qml/qmlvideofx/EffectBlackAndWhite.qml')
-rw-r--r--examples/video/qmlvideofx/qml/qmlvideofx/EffectBlackAndWhite.qml13
1 files changed, 8 insertions, 5 deletions
diff --git a/examples/video/qmlvideofx/qml/qmlvideofx/EffectBlackAndWhite.qml b/examples/video/qmlvideofx/qml/qmlvideofx/EffectBlackAndWhite.qml
index 7009cb4e2..6eb0fcc41 100644
--- a/examples/video/qmlvideofx/qml/qmlvideofx/EffectBlackAndWhite.qml
+++ b/examples/video/qmlvideofx/qml/qmlvideofx/EffectBlackAndWhite.qml
@@ -42,12 +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
+ // Transform slider values, and bind result to shader uniforms
+ property real threshold: parameters.get(0).value
fragmentShaderFilename: "shaders/blackandwhite.fsh"
}