mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
apply the interpolation fix to Z interpolation.
more accurate conversion of Z values. but this doesn't fix the horrendous Z-fighting in Pokémon B/W because of course it doesn't >_<
This commit is contained in:
@ -882,7 +882,7 @@ void SubmitPolygon()
|
||||
if (FlushAttributes & 0x2)
|
||||
z = wshifted;
|
||||
else if (wshifted)
|
||||
z = (((s64)vtx->Position[2] * 0x800000) / wshifted) + 0x7FFEFF;
|
||||
z = ((((s64)vtx->Position[2] * 0x4000) / wshifted) * 0x200) + 0x7FFE00;
|
||||
else
|
||||
z = 0x7FFEFF;
|
||||
|
||||
|
Reference in New Issue
Block a user