]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rsurf.c
changed shadow projection length to use model->radius*2 instead of model->radius
[xonotic/darkplaces.git] / gl_rsurf.c
index d72dcbab094c3d13bba9d89ab3505230d28cf9ca..664f70e600ab0ec5073753f51f4219a5aae081f1 100644 (file)
@@ -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