From 16dc82c3ce2db874c0782881c2079829aa9fe2ed Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 2 Jul 2005 02:56:48 +0000 Subject: [PATCH] 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 --- gl_rsurf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) { -- 2.39.2