fix color bleeding
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user