From: havoc Date: Fri, 1 Jul 2005 06:58:09 +0000 (+0000) Subject: changed shadow projection length to use model->radius*2 instead of model->radius X-Git-Tag: xonotic-v0.1.0preview~4711 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=26a744901b44783350d7af3cb429544fed04506e 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 --- 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