Always sample lightgrid a bit higher up, because anything close to the

ground usually turns pitch-black that's got a smaller bounding box.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5616 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Eukara 2020-02-11 23:12:33 +00:00
parent 237a9e820f
commit 9099d2796b

View file

@ -1391,7 +1391,7 @@ qboolean R_CalcModelLighting(entity_t *e, model_t *clmodel)
VectorAdd(e->origin, center, center);
#else
VectorCopy(e->origin, center);
center[2] += 8;
center[2] += 24;
#endif
cl.worldmodel->funcs.LightPointValues(cl.worldmodel, center, shadelight, ambientlight, lightdir);
}