2 Months Ago
Reverse Z (#1581) Every other modern engine uses a reversed depth buffer, Unity DX11+ UE4+ Godot It brings a massive improvement to depth buffer precision helping to prevent z-fighting and other depth precision issues. Source 2 has always had support for it but was not forced because of DX9. We should have turned this on long ago and will have to rip the band aid off at some point. It will break peoples custom shaders. The other ways their shaders would break that I'm unsure if we could provide compatability are rare: Interact with the depth buffer directly or through Depth::Get etc. Perform operations in clip space like gizmo_grid.shader does. I don't see why we'd ever change clip space direction again after this.