From f1a828d72f82fb097ca611d543afe6c51484e591 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 30 Dec 2006 20:28:06 +0000 Subject: [PATCH] fix bug that made some models not cast shadows from the correct location git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6674 d7cf8633-e32d-0410-b094-e92efae38249 --- r_shadow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/r_shadow.c b/r_shadow.c index be249343..9b4a52e3 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -2561,6 +2561,7 @@ void R_DrawModelShadows(void) VectorSet(relativeshadowmaxs, relativethrowdistance, relativethrowdistance, relativethrowdistance); VectorNegate(ent->modellight_lightdir, relativelightdirection); VectorScale(relativelightdirection, -relativethrowdistance, relativelightorigin); + R_Mesh_Matrix(&ent->matrix); ent->model->DrawShadowVolume(ent, relativelightorigin, relativelightdirection, relativethrowdistance, ent->model->nummodelsurfaces, ent->model->surfacelist, relativeshadowmins, relativeshadowmaxs); } } -- 2.39.2