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

@@ -15,15 +15,15 @@ void main()
[[fragment]]
uniform sampler2D tex;
uniform mediump float alpha;
uniform highp float alpha;
uniform bool highlight;
in mediump vec2 uv;
out mediump vec4 frag;
in highp vec2 uv;
out highp vec4 frag;
void main()
{
mediump vec4 c = texture(tex, uv);
highp vec4 c = texture(tex, uv);
frag = highlight ?
vec4(clamp(vec3(0.3) + c.rgb, vec3(0.0), vec3(1.0)), c.a) :
c * vec4(1.0, 1.0, 1.0, alpha);