diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-28 19:36:00 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-28 19:36:00 +0000 |
commit | 66047d123769245e3b5cb8bbe748aefb13db16d4 (patch) | |
tree | 5224d291d80726c44fccf21ec185430b634316a6 /gfx/gl/shadowMapper.h | |
parent | Generate a single shadow band and region definition (diff) | |
download | ilt-66047d123769245e3b5cb8bbe748aefb13db16d4.tar.bz2 ilt-66047d123769245e3b5cb8bbe748aefb13db16d4.tar.xz ilt-66047d123769245e3b5cb8bbe748aefb13db16d4.zip |
Generate 4 bands of shadow maps
Diffstat (limited to 'gfx/gl/shadowMapper.h')
-rw-r--r-- | gfx/gl/shadowMapper.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gfx/gl/shadowMapper.h b/gfx/gl/shadowMapper.h index d5f091e..7065ffe 100644 --- a/gfx/gl/shadowMapper.h +++ b/gfx/gl/shadowMapper.h @@ -11,11 +11,12 @@ class ShadowMapper { public: ShadowMapper(const glm::ivec2 & size); + static constexpr std::size_t SHADOW_BANDS {4}; template<std::size_t S> struct Definitions { std::array<glm::mat4x4, S> projections; std::array<glm::vec4, S> regions; }; - Definitions<1> update(const SceneProvider &, const glm::vec3 & direction, const Camera &) const; + Definitions<SHADOW_BANDS> update(const SceneProvider &, const glm::vec3 & direction, const Camera &) const; class FixedPoint : public Program { public: |