1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Set NoN (no near clipping) flag for all .Rej ucodes.

Fixed wrongly clipped polygons in RE2, Ada's locket cutscene, #2152
This commit is contained in:
Sergey Lipskiy 2020-03-21 20:35:02 +07:00
parent dff219f26f
commit 225f1414dc

View File

@ -397,6 +397,9 @@ void GBIInfo::loadMicrocode(u32 uc_start, u32 uc_dstart, u16 uc_dsize)
} else if (strncmp(&uc_str[4], "Gfx", 3) == 0) {
current.NoN = (strstr( uc_str + 4, ".NoN") != nullptr);
current.Rej = (strstr(uc_str + 4, ".Rej") != nullptr);
if (current.Rej)
// For the Z direction, a reject box can be done with the far plane, but not with the near plane.
current.NoN = true;
if (strncmp( &uc_str[14], "F3D", 3 ) == 0) {
if (uc_str[28] == '1' || strncmp(&uc_str[28], "0.95", 4) == 0 || strncmp(&uc_str[28], "0.96", 4) == 0)