shadow pitch fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2669 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-17 21:27:46 +00:00
parent 8259b5f1cd
commit e6a4c3825b
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -186,6 +186,7 @@ struct md2 : vertmodel
{
shadowdir = vec(0, 1/SQRT2, -1/SQRT2);
shadowdir.rotate_around_z((-shadowyaw-yaw-180.0f)*RAD);
shadowdir.rotate_around_y(-pitch*RAD);
(shadowpos = shadowdir).mul(shadowdist);
}
+1
View File
@@ -171,6 +171,7 @@ struct md3 : vertmodel
{
shadowdir = vec(0, 1/SQRT2, -1/SQRT2);
shadowdir.rotate_around_z((-shadowyaw-yaw-180.0f)*RAD);
shadowdir.rotate_around_y(-pitch*RAD);
(shadowpos = shadowdir).mul(shadowdist);
}