summaryrefslogtreecommitdiffstats
path: root/cwd/assets
diff options
context:
space:
mode:
Diffstat (limited to 'cwd/assets')
-rw-r--r--cwd/assets/altcraft/shaders/frag/ssao.fs2
1 files changed, 1 insertions, 1 deletions
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);
}