mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
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:
parent
92cbddb20c
commit
0c2beaafa8
1 changed files with 2 additions and 1 deletions
|
@ -810,8 +810,9 @@ void MakeSkyVec (float s, float t, int axis)
|
|||
vec3_t v, b;
|
||||
int j, k;
|
||||
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.
|
||||
|
||||
b[0] = s*skydist;
|
||||
|
|
Loading…
Reference in a new issue