update UTI, remove blur from CompDraw mask

This commit is contained in:
2019-07-12 21:07:30 +02:00
parent e78047149a
commit 6e97a29058
8 changed files with 38 additions and 15 deletions

View File

@@ -78,7 +78,11 @@ void main()
stroke.a = clamp(blend_stroke(stroke.a, dual.a, dual_alpha, dual_blend_mode), 0.0, 1.0);
}
stroke.a = mask ? stroke.a * blur(tex_mask, uv).r : stroke.a;
// Don't use blur to sample the mask
// it breaks blend_mode value MacBook with Intel HD Graphics 6000
if (mask)
stroke.a = stroke.a * texture(tex_mask, uv).r;
if (!lock && base.a == 0.0)
{
frag = stroke * vec4(1.0, 1.0, 1.0, alpha);