1
0
Fork 0
forked from fte/fteqw

Push the skybox back if the user set the gl_maxdist to infinate.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1488 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-10-16 03:59:45 +00:00
parent 92cbddb20c
commit 0c2beaafa8

View file

@ -810,8 +810,9 @@ void MakeSkyVec (float s, float t, int axis)
vec3_t v, b; vec3_t v, b;
int j, k; int j, k;
float skydist = gl_skyboxdist.value; float skydist = gl_skyboxdist.value;
extern cvar_t gl_maxdist;
if (r_shadows.value) //because r_shadows comes with an infinate depth perspective. if (r_shadows.value || !gl_maxdist.value) //because r_shadows comes with an infinate depth perspective.
skydist*=20; //so we can put the distance at whatever distance needed. skydist*=20; //so we can put the distance at whatever distance needed.
b[0] = s*skydist; b[0] = s*skydist;