diff options
author | LaG1924 <lag1924@gmail.com> | 2021-12-11 21:35:56 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-12-11 21:35:56 +0100 |
commit | c8834896ed4462b9408cfcaceb4416173912e2bc (patch) | |
tree | ea266f6d02a4b9cb8b9997580055efc239006124 | |
parent | Optimized face's normals calculation (diff) | |
download | AltCraft-c8834896ed4462b9408cfcaceb4416173912e2bc.tar AltCraft-c8834896ed4462b9408cfcaceb4416173912e2bc.tar.gz AltCraft-c8834896ed4462b9408cfcaceb4416173912e2bc.tar.bz2 AltCraft-c8834896ed4462b9408cfcaceb4416173912e2bc.tar.lz AltCraft-c8834896ed4462b9408cfcaceb4416173912e2bc.tar.xz AltCraft-c8834896ed4462b9408cfcaceb4416173912e2bc.tar.zst AltCraft-c8834896ed4462b9408cfcaceb4416173912e2bc.zip |
-rw-r--r-- | cwd/assets/altcraft/shaders/frag/ssao.fs | 2 |
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); } |