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