diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-01-07 19:11:25 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-01-07 19:11:25 +0000 |
commit | e2fcb6ac75fe46c932d29ed056242158c99c1c11 (patch) | |
tree | 92307fa29392525aacb4d7835027c9e370ebb4f6 /gfx/gl/shadowMapper.h | |
parent | Use the whole texture when only some shadow map bands (diff) | |
download | ilt-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.h | 2 |
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; |