use high on painting shaders

This commit is contained in:
2019-03-05 10:21:49 +01:00
parent 317292318a
commit 9e26c67de6
13 changed files with 111 additions and 111 deletions

View File

@@ -1,4 +1,4 @@
mediump vec3 blend_normal(mediump vec4 base, mediump vec4 stroke, mediump float alpha_tot)
highp vec3 blend_normal(highp vec4 base, highp vec4 stroke, highp float alpha_tot)
{
return mix(
base.rgb,
@@ -7,7 +7,7 @@ mediump vec3 blend_normal(mediump vec4 base, mediump vec4 stroke, mediump float
);
}
mediump vec3 blend_multiply(mediump vec4 base, mediump vec4 stroke, mediump float alpha_tot)
highp vec3 blend_multiply(highp vec4 base, highp vec4 stroke, highp float alpha_tot)
{
return mix(
stroke.rgb,
@@ -20,7 +20,7 @@ mediump vec3 blend_multiply(mediump vec4 base, mediump vec4 stroke, mediump floa
);
}
mediump vec3 blend_screen(mediump vec4 base, mediump vec4 stroke, mediump float alpha_tot)
highp vec3 blend_screen(highp vec4 base, highp vec4 stroke, highp float alpha_tot)
{
return mix(
stroke.rgb,
@@ -33,7 +33,7 @@ mediump vec3 blend_screen(mediump vec4 base, mediump vec4 stroke, mediump float
);
}
mediump vec3 blend_colorDodge(mediump vec4 base, mediump vec4 stroke, mediump float alpha_tot)
highp vec3 blend_colorDodge(highp vec4 base, highp vec4 stroke, highp float alpha_tot)
{
return mix(
stroke.rgb,
@@ -46,7 +46,7 @@ mediump vec3 blend_colorDodge(mediump vec4 base, mediump vec4 stroke, mediump fl
);
}
mediump vec3 blend_overlay(mediump vec4 base, mediump vec4 stroke, mediump float alpha_tot)
highp vec3 blend_overlay(highp vec4 base, highp vec4 stroke, highp float alpha_tot)
{
return mix(
stroke.rgb,
@@ -63,7 +63,7 @@ mediump vec3 blend_overlay(mediump vec4 base, mediump vec4 stroke, mediump float
);
}
mediump vec4 blend(mediump vec4 base, mediump vec4 stroke, int mode)
highp vec4 blend(highp vec4 base, highp vec4 stroke, int mode)
{
mediump float contribution = (1.0 - base.a) * stroke.a;
mediump float alpha_tot = base.a + contribution;