summaryrefslogtreecommitdiff
path: root/shaders/cairo-gl/5.frag
blob: b233478fb46b3187ff594b47e7e259c5662736f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
uniform sampler2D source_sampler;
varying vec2 source_texcoords;
vec4 get_source()
{
    return texture2D(source_sampler, source_texcoords);
}
varying float mask_coverage;
vec4 get_mask()
{
    return vec4(0, 0, 0, mask_coverage);
}
void main()
{
    gl_FragColor = get_source() * get_mask().a;
}