fix color bleeding

This commit is contained in:
2019-07-21 00:27:34 +02:00
parent 02fda636ab
commit 85d9c057f8
15 changed files with 258 additions and 221 deletions

View File

@@ -52,12 +52,15 @@ void main()
highp vec2 uv_base = use_fragcoord ? (gl_FragCoord.st / resolution) : uv;
highp vec4 base = texture(tex, uv_base);
highp vec4 stroke = texture(tex_stroke, uv);
if (base.a == 0.0)
base.rgb = stroke.rgb;
if (stroke.a == 0.0)
{
frag = base * vec4(1.0, 1.0, 1.0, alpha);
return;
}
// if (stroke.a == 0.0)
// {
// frag = base * vec4(1.0, 1.0, 1.0, alpha);
// return;
// }
if (use_pattern)
{