xemu-project / xemu

Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
https://xemu.app
Other
2.57k stars 258 forks source link

Halo 2 skybox fix (& realtime lighting shadow casting in other games) #1644

Closed polymetal0 closed 1 month ago

polymetal0 commented 1 month ago

Clamping depth value to 1 apparently fixes this. Skybox is also affected by the see through issue:

EDIT: In case you are caching shaders in disk, you will need to delete your shader cache file.

Captura3 Captura3mal Captura4 Captura4mal Captura Capturamal Captura2 Captura2mal

Shoegzer commented 1 month ago

Fantastic! And yeah, the see-through textures issue still exists as per #55 but this is quite a welcome fix.

polymetal0 commented 1 month ago

I noticed that this changes also restore dynamic shadows (tested on Conker and Halo CE).

Some screenshots:

Latest release: conker halo

Clamping z to 1: conker2 halo 2

GXTX commented 1 month ago

Ideally you'd test with https://github.com/abaire/nxdk_pgraph_tests

polymetal0 commented 1 month ago

Thanks! I don't expect these changes to make it to the main branch anyway, but I hope someone with more understanding of the project can get a better clue about where the issue might be.