From 66047d123769245e3b5cb8bbe748aefb13db16d4 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 28 Dec 2022 19:36:00 +0000 Subject: Generate 4 bands of shadow maps --- gfx/gl/shadowMapper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gfx/gl/shadowMapper.h') 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 struct Definitions { std::array projections; std::array regions; }; - Definitions<1> update(const SceneProvider &, const glm::vec3 & direction, const Camera &) const; + Definitions update(const SceneProvider &, const glm::vec3 & direction, const Camera &) const; class FixedPoint : public Program { public: -- cgit v1.2.3