aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects/ThresholdMask.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/ThresholdMask.qml')
-rw-r--r--src/effects/ThresholdMask.qml14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/effects/ThresholdMask.qml b/src/effects/ThresholdMask.qml
index 5136ffb..36e0365 100644
--- a/src/effects/ThresholdMask.qml
+++ b/src/effects/ThresholdMask.qml
@@ -210,18 +210,6 @@ Item {
anchors.fill: parent
- fragmentShader: "
- varying highp vec2 qt_TexCoord0;
- uniform highp float qt_Opacity;
- uniform lowp sampler2D source;
- uniform lowp sampler2D maskSource;
- uniform highp float threshold;
- uniform highp float spread;
- void main(void) {
- lowp vec4 colorFragment = texture2D(source, qt_TexCoord0.st);
- lowp vec4 maskFragment = texture2D(maskSource, qt_TexCoord0.st);
- gl_FragColor = colorFragment * smoothstep(threshold * (1.0 + spread) - spread, threshold * (1.0 + spread), maskFragment.a) * qt_Opacity;
- }
- "
+ fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders/thresholdmask.frag"
}
}