diff options
Diffstat (limited to 'shaders/cairo-gl/3.frag')
-rw-r--r-- | shaders/cairo-gl/3.frag | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/shaders/cairo-gl/3.frag b/shaders/cairo-gl/3.frag new file mode 100644 index 0000000..ca1bb2d --- /dev/null +++ b/shaders/cairo-gl/3.frag @@ -0,0 +1,15 @@ +uniform vec4 source_constant; +vec4 get_source() +{ + return source_constant; +} +varying float mask_coverage; +vec4 get_mask() +{ + return vec4(0, 0, 0, mask_coverage); +} +void main() +{ + gl_FragColor = get_source() * get_mask().a; +} + |