diff options
author | 2025-04-11 12:48:28 +0100 | |
---|---|---|
committer | 2025-04-11 07:48:28 -0400 | |
commit | 14644cb8459e8e695334d17b2cfcfcda63342bac (patch) | |
tree | 2763442ce632a376a9a791f86bf554135e837d1f /src/devices/cpu/h8/h8.cpp | |
parent | 899e857ef0fa0ba1129618040df97ce3ed13a772 (diff) |
sega/model2.cpp: improve z-sort and clipping (#13575)
* model2: improve z-sort and clipping
Polygons in later windows are always drawn after polygons from earlier windows, regardless of z value.
Four planes representing the visible frustum are now used for polygon clipping; it is no longer necessary to add 1.0 to z during projection.
* model2: only reset the triangle z value at the start of the frame
Zero Gunner uses z value from previous object for enemy bullets; resetting z values leads to them not being visible
Setting master z-clip value to 0xFF disables z-clipping according to Model 2B-CRX manual
Diffstat (limited to 'src/devices/cpu/h8/h8.cpp')
0 files changed, 0 insertions, 0 deletions