Platform: Unlit.glsl now supports MASK permutations

This commit is contained in:
Marco Cawthorne 2022-06-27 08:30:56 -07:00
parent 08706fcacb
commit d50ec089f3
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -26,6 +26,13 @@ void main ()
void main ()
{
vec4 d_f = texture2D( s_diffuse, tex_c );
#ifdef MASK
// alpha-testing happens here
if (d_f.a < MASK)
discard;
#endif
gl_FragColor = fog4( d_f );
}
#endif