summaryrefslogtreecommitdiffstats
path: root/cwd/assets
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-12-11 21:35:56 +0100
committerLaG1924 <lag1924@gmail.com>2021-12-11 21:35:56 +0100
commitc8834896ed4462b9408cfcaceb4416173912e2bc (patch)
treeea266f6d02a4b9cb8b9997580055efc239006124 /cwd/assets
parentOptimized face's normals calculation (diff)
downloadAltCraft-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
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);
}