From 26a744901b44783350d7af3cb429544fed04506e Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 1 Jul 2005 06:58:09 +0000 Subject: [PATCH] changed shadow projection length to use model->radius*2 instead of model->radius git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5475 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 d72dcbab..664f70e6 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -668,7 +668,7 @@ void R_Q1BSP_DrawShadowVolume(entity_render_t *ent, vec3_t relativelightorigin, model_t *model = ent->model; msurface_t *surface; int surfacelistindex; - float projectdistance = lightradius + model->radius + r_shadow_projectdistance.value; + float projectdistance = lightradius + model->radius*2 + r_shadow_projectdistance.value; vec3_t modelorg; texture_t *texture; // check the box in modelspace, it was already checked in worldspace -- 2.39.2