]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix bug that made some models not cast shadows from the correct location
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 30 Dec 2006 20:28:06 +0000 (20:28 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 30 Dec 2006 20:28:06 +0000 (20:28 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6674 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index be2493433e38be5a026521da26eab4e3bc1fbaa3..9b4a52e3bc1ffde340af80e351e7107ba28713ab 100644 (file)
@@ -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);
                }
        }