aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-06-27 20:52:38 +0200
committerStapleButter <thetotalworm@gmail.com>2017-06-27 20:52:38 +0200
commitf113f2f26e4f018347b2621457ec94a778a9bff2 (patch)
tree5ecb309d2be32dbffa36e8bdcbc843024ecd8acf /src
parentb5784540abfbcf1566910a2b87256c06caad0393 (diff)
3D: fix missing term in MatrixTranslate(). fixes Monster Trucks billboards.
Diffstat (limited to 'src')
-rw-r--r--src/GPU3D.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp
index f3501b4..db445c0 100644
--- a/src/GPU3D.cpp
+++ b/src/GPU3D.cpp
@@ -471,6 +471,7 @@ void MatrixTranslate(s32* m, s32* s)
m[12] += ((s64)s[0]*m[0] + (s64)s[1]*m[4] + (s64)s[2]*m[8]) >> 12;
m[13] += ((s64)s[0]*m[1] + (s64)s[1]*m[5] + (s64)s[2]*m[9]) >> 12;
m[14] += ((s64)s[0]*m[2] + (s64)s[1]*m[6] + (s64)s[2]*m[10]) >> 12;
+ m[15] += ((s64)s[0]*m[3] + (s64)s[1]*m[7] + (s64)s[2]*m[11]) >> 12;
}
void UpdateClipMatrix()
@@ -722,7 +723,8 @@ void SubmitPolygon()
// clipping
nverts = ClipPolygon<true>(clippedvertices, nverts, clipstart);
-
+//if (((CurPolygonAttr >> 16) & 0x1F) != 0x1F) nverts=0;
+//CurPolygonAttr|=0x1F0000;
if (nverts == 0)
{
LastStripPolygon = NULL;