Fix lines on screen from SSAO (thanks notalpha)

This commit is contained in:
James Seibel
2023-06-15 07:42:29 -05:00
parent 0631f7adf7
commit ed61354ec0
@@ -58,7 +58,7 @@ void main()
float geometryDepth = calcViewPosition(offset.xy).z;
float rangeCheck = smoothstep(0.0, 1.0, gSampleRad / abs(viewPos.z - geometryDepth));
occlusion_factor += float(geometryDepth >= samplePos.z + 0.0) * rangeCheck;
occlusion_factor += float(geometryDepth >= samplePos.z + 0.05) * rangeCheck;
}