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:
parent
1d3f52ac87
commit
20a338b0f6
5 changed files with 19 additions and 5 deletions
|
@ -860,7 +860,12 @@ YOU SHOULD NOT EDIT THIS FILE BY HAND
|
|||
"uniform vec4 e_colourident;\n"
|
||||
"void main ()\n"
|
||||
"{\n"
|
||||
"gl_FragColor = fog4blend(texture2D(s_t0, tc) * vc * e_colourident);\n"
|
||||
"vec4 col = texture2D(s_t0, tc);\n"
|
||||
"#ifdef MASK\n"
|
||||
"if (col.a < 0.5)\n"
|
||||
"discard;\n"
|
||||
"#endif\n"
|
||||
"gl_FragColor = fog4blend(col * vc * e_colourident);\n"
|
||||
"}\n"
|
||||
"#endif\n"
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue