From: havoc Date: Sat, 2 Jul 2005 02:56:48 +0000 (+0000) Subject: fix a problem with shadows being cut short from models near the edge of light radius... X-Git-Tag: xonotic-v0.1.0preview~4707 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=16dc82c3ce2db874c0782881c2079829aa9fe2ed;p=xonotic%2Fdarkplaces.git fix a problem with shadows being cut short from models near the edge of light radius (use model->radius*2 not model->radius) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5479 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rsurf.c b/gl_rsurf.c index 664f70e6..50d3f2db 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -711,7 +711,7 @@ void R_Q1BSP_DrawShadowVolume(entity_render_t *ent, vec3_t relativelightorigin, } else { - projectdistance = lightradius + ent->model->radius; + projectdistance = lightradius + ent->model->radius*2; Matrix4x4_Transform(&ent->inversematrix, r_vieworigin, modelorg); for (surfacelistindex = 0;surfacelistindex < numsurfaces;surfacelistindex++) {