5 Months Ago
renderdevicevulkan: enable reverse depth Reverse the DepthFunc on all shaders GREATER <-> LESS gizmo_grid: reverse manual depth bias We need to change the depth clear value from 1->0 (in 3 different places of course) Recompiled core shaders Fix r_depth_debug Default RenderState DepthFunc to RS_CMP_GREATER_EQUAL, makes shaders without a RenderState set default to it https://files.facepunch.com/sam/1b0711b1/tt3.png Readjust depth bias on debug shaders for reverse depth Fix shadow in reversed depth https://files.facepunch.com/sam/1b0711b1/tt2.png Adjust depth bias for gizmo shaders for the increased depth precision Tiled light culling with reverse-z SSR with inverted z ( Way more stable ) Fix (3D) Skybox with inverse depth range Fix SSR backtracing on reverse depth Remove shadow depth bias from shader, it should be controlled by shadow matrix on lightbinner DoF with reverse depth Shaders for reverse depth Fix glass and decal overlays depth bias Shaders with depth bias fixes Add shadow depth bias on matrix Compile UI shaders for inverse depth Reverse depth comparison on the sampler rather than on the shader for shadows, makes this more lean Fix SSR backtracing and confidence check ( and Depth::GetLinear() ) https://files.facepunch.com/sam/1b1111b1/cxXjDfQ2g5.png Update shaders Reverse-Z Compatibility: Serialize depth stencil state version and reverse the depth comparison of old shaders Update shaders with stencil state versioning https://files.facepunch.com/sam/1b2111b1/ZCuq7swn9v.png