diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-29 01:56:42 +0000 |
---|---|---|
committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2024-01-30 17:28:03 +0000 |
commit | a01f1d9e834719046fbdec02a5147d2e55722bac (patch) | |
tree | 58475e7704f486890246e4f3ae3b4e5031e668eb /gfx/gl/shadowMapper.h | |
parent | Set shadow program uniforms all in one function, merge setting of view projec... (diff) | |
download | ilt-a01f1d9e834719046fbdec02a5147d2e55722bac.tar.bz2 ilt-a01f1d9e834719046fbdec02a5147d2e55722bac.tar.xz ilt-a01f1d9e834719046fbdec02a5147d2e55722bac.zip |
Remove the complications from previously storing several shadow maps in the texture
Diffstat (limited to 'gfx/gl/shadowMapper.h')
-rw-r--r-- | gfx/gl/shadowMapper.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gfx/gl/shadowMapper.h b/gfx/gl/shadowMapper.h index b948f50..a95d4c1 100644 --- a/gfx/gl/shadowMapper.h +++ b/gfx/gl/shadowMapper.h @@ -17,11 +17,7 @@ public: static constexpr std::size_t SHADOW_BANDS {4}; - struct Definitions { - std::array<glm::mat4x4, SHADOW_BANDS> projections {}; - std::array<TextureRelRegion, SHADOW_BANDS> regions {}; - size_t maps {}; - }; + using Definitions = std::vector<glm::mat4x4>; [[nodiscard]] Definitions update(const SceneProvider &, const Direction3D & direction, const Camera &) const; |