diff options
Diffstat (limited to 'src/effects/shaders/+glslcore/thresholdmask.frag')
-rw-r--r-- | src/effects/shaders/+glslcore/thresholdmask.frag | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/effects/shaders/+glslcore/thresholdmask.frag b/src/effects/shaders/+glslcore/thresholdmask.frag deleted file mode 100644 index 5b331d8..0000000 --- a/src/effects/shaders/+glslcore/thresholdmask.frag +++ /dev/null @@ -1,14 +0,0 @@ -#version 150 core -in vec2 qt_TexCoord0; -uniform float qt_Opacity; -uniform sampler2D source; -uniform sampler2D maskSource; -uniform float threshold; -uniform float spread; -out vec4 fragColor; - -void main(void) { - vec4 colorFragment = texture(source, qt_TexCoord0.st); - vec4 maskFragment = texture(maskSource, qt_TexCoord0.st); - fragColor = colorFragment * smoothstep(threshold * (1.0 + spread) - spread, threshold * (1.0 + spread), maskFragment.a) * qt_Opacity; -} |