add color burn, fragment early discard
This commit is contained in:
@@ -52,6 +52,11 @@ void main()
|
||||
{
|
||||
mediump vec4 base = texture(tex, uv);
|
||||
mediump vec4 stroke = texture(tex_stroke, uv);
|
||||
if (stroke.a == 0)
|
||||
{
|
||||
frag = base;
|
||||
return;
|
||||
}
|
||||
|
||||
if (use_pattern)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user