add color burn, fragment early discard

This commit is contained in:
2019-02-22 14:52:01 +01:00
parent 099b1bddc5
commit edc2bacc90
4 changed files with 34 additions and 14 deletions

View File

@@ -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)
{