do not assume alpha test works (because it does not in gles2 / core).

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4300 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-04-08 03:51:21 +00:00
parent 1d3f52ac87
commit 20a338b0f6
5 changed files with 19 additions and 5 deletions

View file

@ -22,6 +22,11 @@ varying vec4 vc;
uniform vec4 e_colourident;
void main ()
{
gl_FragColor = fog4blend(texture2D(s_t0, tc) * vc * e_colourident);
vec4 col = texture2D(s_t0, tc);
#ifdef MASK
if (col.a < 0.5)
discard;
#endif
gl_FragColor = fog4blend(col * vc * e_colourident);
}
#endif