summaryrefslogtreecommitdiffstats
path: root/src/opengl/util/painter.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/util/painter.glsl')
-rw-r--r--src/opengl/util/painter.glsl21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/opengl/util/painter.glsl b/src/opengl/util/painter.glsl
deleted file mode 100644
index b990234778..0000000000
--- a/src/opengl/util/painter.glsl
+++ /dev/null
@@ -1,21 +0,0 @@
-uniform sampler2D dst_texture;
-uniform sampler2D mask_texture;
-uniform vec2 inv_mask_size;
-uniform vec2 inv_dst_size;
-uniform vec2 mask_offset;
-uniform vec4 mask_channel;
-
-float mask()
-{
- return dot(mask_channel, texture2D(mask_texture, (gl_FragCoord.xy + mask_offset) * inv_mask_size));
-}
-
-void main()
-{
- vec4 dst = texture2D(dst_texture, gl_FragCoord.xy * inv_dst_size);
-
- // combine clip and coverage channels
- float mask_alpha = mask();
-
- gl_FragColor = mix(dst, composite(brush(), dst), mask_alpha);
-}