Platform: Unlit.glsl now supports MASK permutations
This commit is contained in:
parent
08706fcacb
commit
d50ec089f3
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue