mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 05:45:38 +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]);
|
||||
|
|
Loading…
Reference in a new issue