isinf not available in GLES 2

This commit is contained in:
Flyinghead 2018-07-29 19:24:14 +02:00
parent 92c06a7249
commit 63a70e0f62
1 changed files with 6 additions and 2 deletions

View File

@ -107,10 +107,14 @@ void main() \n\
vtx_base=in_base; \n\
vtx_offs=in_offs; \n\
vtx_uv=in_uv; \n\
vec4 vpos=in_pos; \n\
vec4 vpos=in_pos; \n"
#ifndef GLES
"\
if (isinf(vpos.z)) \n\
vpos.w = 1.18e-38; \n\
else \n\
else \n"
#endif
"\
vpos.w = 1.0 / vpos.z; \n"
#ifndef GLES
"\