use high on painting shaders
This commit is contained in:
@@ -23,13 +23,13 @@ uniform mediump float alpha;
|
||||
uniform mediump vec2 resolution;
|
||||
uniform bool mask;
|
||||
|
||||
in mediump vec2 uv;
|
||||
out mediump vec4 frag;
|
||||
in highp vec2 uv;
|
||||
out highp vec4 frag;
|
||||
|
||||
void main()
|
||||
{
|
||||
mediump vec4 base = texture(tex, uv);
|
||||
mediump vec4 stroke = texture(tex_stroke, uv);
|
||||
highp vec4 base = texture(tex, uv);
|
||||
highp vec4 stroke = texture(tex_stroke, uv);
|
||||
stroke.a = mask ? stroke.a * blur(tex_mask, uv).r : stroke.a;
|
||||
frag = vec4(base.rgb, clamp((base.a - stroke.a) * alpha, 0.0, 1.0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user