From f113f2f26e4f018347b2621457ec94a778a9bff2 Mon Sep 17 00:00:00 2001 From: StapleButter Date: Tue, 27 Jun 2017 20:52:38 +0200 Subject: [PATCH] 3D: fix missing term in MatrixTranslate(). fixes Monster Trucks billboards. --- src/GPU3D.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp index f3501b4d..db445c0f 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(clippedvertices, nverts, clipstart); - +//if (((CurPolygonAttr >> 16) & 0x1F) != 0x1F) nverts=0; +//CurPolygonAttr|=0x1F0000; if (nverts == 0) { LastStripPolygon = NULL;