0x1F9F1 / Open1560

A mod for Midtown Madness 1, primarily focused on supporting modern computers and fixing bugs.
https://0x1F9F1.github.io/Open1560
GNU General Public License v3.0
113 stars 9 forks source link

agiMeshSet::DrawCard has incorrect depth when clipping #107

Closed 0x1F9F1 closed 3 years ago

0x1F9F1 commented 3 years ago

When clipping, agiMeshSet::DrawCard calculates depth = depth * rhw * DepthScale + DepthOffset; in a loop per vertex, causing subsequent vertices to have incorrect depth.