From aa75b018f3b97c72b57de68867417cbda51439c3 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 3 Dec 2022 03:41:32 +0000 Subject: Initial commit of the shadow map generator and shadows render interface Lots of hard coding, buggy in places, far from great, but the basics work. --- game/terrain.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'game/terrain.cpp') 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 #include #include +#include #include #include #include @@ -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); +} -- cgit v1.2.3