RPCS3 / rpcs3

PlayStation 3 emulator and debugger
https://rpcs3.net/
GNU General Public License v2.0
15.43k stars 1.92k forks source link

[Task] Optionally simulate depth test for Z-prepass algorithms #13078

Open kd-11 opened 1 year ago

kd-11 commented 1 year ago

Mostly a problem with games that make use of Z-prepass. We can never truly guarantee invariance without using the shader interpreter. Some games have completely different vertex shader setups for both passes and this causes some flickering/Z-fighting when the color pass happens with EQUAL comparison.

Triticum0 commented 1 year ago

Games I test which seems to have a Z-fighting issue: Call of Duty: Black Ops (#13727) https://youtu.be/m9O5LPwYDhA?t=669 Madden NFL 25 (Helmets) Battleship (Water) Watchmen: The End is Nigh Part 2 #13762 The Darkness #13761 Blazing Angels 2: Secret Missions of WWII #13354

reply if you want the issue to move to separate issues?