3 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