summaryrefslogtreecommitdiff
path: root/gfx/gl/shadowMapper.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-01-07 19:11:25 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-01-07 19:11:25 +0000
commite2fcb6ac75fe46c932d29ed056242158c99c1c11 (patch)
tree92307fa29392525aacb4d7835027c9e370ebb4f6 /gfx/gl/shadowMapper.h
parentUse the whole texture when only some shadow map bands (diff)
downloadilt-e2fcb6ac75fe46c932d29ed056242158c99c1c11.tar.bz2
ilt-e2fcb6ac75fe46c932d29ed056242158c99c1c11.tar.xz
ilt-e2fcb6ac75fe46c932d29ed056242158c99c1c11.zip
Tidy shadow map creation
Diffstat (limited to 'gfx/gl/shadowMapper.h')
-rw-r--r--gfx/gl/shadowMapper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gfx/gl/shadowMapper.h b/gfx/gl/shadowMapper.h
index bdbd39f..2805d64 100644
--- a/gfx/gl/shadowMapper.h
+++ b/gfx/gl/shadowMapper.h
@@ -48,6 +48,8 @@ public:
}
private:
+ [[nodiscard]] static std::vector<std::array<glm::vec3, 4>> getBandViewExtents(
+ const Camera &, const glm::mat4 & lightView);
glFrameBuffer depthMapFBO;
glTexture depthMap;
glm::ivec2 size;