mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-25 15:15:40 +00:00
Possible work around for slightly incorrect viewport positions in ECA and harley
This commit is contained in:
parent
a99f022487
commit
688af26846
|
@ -647,6 +647,14 @@ void CNew3D::RenderViewport(UINT32 addr, int pri)
|
|||
vpHeight = (int)(((vpnode[0x14] >> 16) / 4.0f) + 0.5f); // height (14.2)
|
||||
matrixBase = vpnode[0x16] & 0xFFFFFF; // matrix base address
|
||||
|
||||
if (vpX) {
|
||||
vpX += 2;
|
||||
}
|
||||
|
||||
if (vpY) {
|
||||
vpY += 2;
|
||||
}
|
||||
|
||||
LODBlendTable* tableTest = (LODBlendTable*)TranslateCullingAddress(vpnode[0x17]);
|
||||
|
||||
float angle_left = -atan2(*(float *)&vpnode[12], *(float *)&vpnode[13]);
|
||||
|
|
|
@ -35,7 +35,7 @@ xxxxxxxx xxxxxxxx xxxxxxxx -------- Polygon normal Y coordinate(2.22 fixed poin
|
|||
0x03:
|
||||
xxxxxxxx xxxxxxxx xxxxxxxx -------- Polygon normal Z coordinate(2.22 fixed point)
|
||||
-------- -------- -------- --xxx--- Texture width(in 8 - pixel tiles)
|
||||
-------- -------- -------- ---- - xxx Texture height(in 8 - pixel tiles)
|
||||
-------- -------- -------- -----xxx Texture height(in 8 - pixel tiles)
|
||||
|
||||
0x04:
|
||||
xxxxxxxx xxxxxxxx xxxxxxxx -------- Color(RGB888)
|
||||
|
|
Loading…
Reference in a new issue