summaryrefslogtreecommitdiffstats
path: root/src/RendererSectionData.cpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-12-18 06:59:06 +0100
committerLaG1924 <lag1924@gmail.com>2021-12-18 06:59:06 +0100
commit3dc7e8aba4a07cc3c0d897b82af5a5951bde9991 (patch)
tree7361aa7f00026b2cd6749e73bbe2bfc4b10ebd69 /src/RendererSectionData.cpp
parentFixed SSAO low occlusion factor (diff)
downloadAltCraft-3dc7e8aba4a07cc3c0d897b82af5a5951bde9991.tar
AltCraft-3dc7e8aba4a07cc3c0d897b82af5a5951bde9991.tar.gz
AltCraft-3dc7e8aba4a07cc3c0d897b82af5a5951bde9991.tar.bz2
AltCraft-3dc7e8aba4a07cc3c0d897b82af5a5951bde9991.tar.lz
AltCraft-3dc7e8aba4a07cc3c0d897b82af5a5951bde9991.tar.xz
AltCraft-3dc7e8aba4a07cc3c0d897b82af5a5951bde9991.tar.zst
AltCraft-3dc7e8aba4a07cc3c0d897b82af5a5951bde9991.zip
Diffstat (limited to 'src/RendererSectionData.cpp')
-rw-r--r--src/RendererSectionData.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/RendererSectionData.cpp b/src/RendererSectionData.cpp
index 7e3d285..c7d922e 100644
--- a/src/RendererSectionData.cpp
+++ b/src/RendererSectionData.cpp
@@ -69,6 +69,7 @@ void AddFacesByBlockModel(RendererSectionData &data, const BlockFaces &model, co
vertexData.animations = face.frames;
vertexData.colors = face.color;
vertexData.lights = lightness;
+ vertexData.ambientOcclusion = model.ambientOcclusion ? 1.0f : 0.0f;
}
}