summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
Diffstat (limited to 'game')
-rw-r--r--game/terrain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/terrain.cpp b/game/terrain.cpp
index f10aac6..187d035 100644
--- a/game/terrain.cpp
+++ b/game/terrain.cpp
@@ -152,7 +152,7 @@ Terrain::shadows(const ShadowMapper & shadowMapper, const Frustum & frustum) con
{
shadowMapper.landmess.use();
for (const auto & [surface, sab] : meshes) {
- if (frustum.shadedBy(sab.aabb)) {
+ if (frustum.contains(sab.aabb)) {
glBindVertexArray(sab.vertexArray);
glDrawElements(GL_TRIANGLES, sab.count, GL_UNSIGNED_INT, nullptr);
}