From c8834896ed4462b9408cfcaceb4416173912e2bc Mon Sep 17 00:00:00 2001 From: LaG1924 Date: Sun, 12 Dec 2021 01:35:56 +0500 Subject: Fixed SSAO low occlusion factor --- cwd/assets/altcraft/shaders/frag/ssao.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cwd/assets/altcraft') diff --git a/cwd/assets/altcraft/shaders/frag/ssao.fs b/cwd/assets/altcraft/shaders/frag/ssao.fs index 662852f..0e49c0b 100644 --- a/cwd/assets/altcraft/shaders/frag/ssao.fs +++ b/cwd/assets/altcraft/shaders/frag/ssao.fs @@ -60,7 +60,7 @@ void main() { occlusion += (sampleDepth >= samplePos.z + bias ? 1.0 : 0.0) * rangeCheck; } - occlusion = 1.0f - (occlusion / kernelSize); + occlusion = 1.0f - (occlusion / samples); fragColor = vec4(vec3(occlusion), 1.0f); } -- cgit v1.2.3