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
110 stars 9 forks source link

Fix debug lines with hardware renderer #97

Open 0x1F9F1 opened 3 years ago

0x1F9F1 commented 3 years ago

In the regular draw mode, debug lines (drawn with DrawLine) only work properly with the software renderer. With D3D/OpenGL, they are white (due to fog) and mostly hidden (due to depth testing)

0x1F9F1 commented 3 years ago

The depth issue was due to a mismatch between the Depth[Scale/Offset] used by agiMeshSet and agiProjVtx