summaryrefslogtreecommitdiff
path: root/src/effects/shaders/thresholdmask.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/shaders/thresholdmask.frag')
-rw-r--r--src/effects/shaders/thresholdmask.frag11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/effects/shaders/thresholdmask.frag b/src/effects/shaders/thresholdmask.frag
deleted file mode 100644
index b979589..0000000
--- a/src/effects/shaders/thresholdmask.frag
+++ /dev/null
@@ -1,11 +0,0 @@
-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;
-}