summaryrefslogtreecommitdiff
path: root/game/terrain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/terrain.cpp')
-rw-r--r--game/terrain.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/game/terrain.cpp b/game/terrain.cpp
index 31f7fb1..f798254 100644
--- a/game/terrain.cpp
+++ b/game/terrain.cpp
@@ -7,6 +7,7 @@
#include <cstddef>
#include <filesystem>
#include <gfx/gl/sceneShader.h>
+#include <gfx/gl/shadowMapper.h>
#include <gfx/image.h>
#include <gfx/models/mesh.h>
#include <gfx/models/vertex.hpp>
@@ -93,3 +94,10 @@ Terrain::render(const SceneShader & shader) const
water->bind();
meshes.apply(&Mesh::Draw);
}
+
+void
+Terrain::shadows(const ShadowMapper & shadowMapper) const
+{
+ shadowMapper.fixedPoint.use();
+ meshes.apply(&Mesh::Draw);
+}