From aaff59af171545cc16632881aefb19449a7c491a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 28 Dec 2022 19:29:53 +0000 Subject: Generate a single shadow band and region definition --- gfx/gl/shadowMapper.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gfx/gl/shadowMapper.h') diff --git a/gfx/gl/shadowMapper.h b/gfx/gl/shadowMapper.h index 2b9bc85..d5f091e 100644 --- a/gfx/gl/shadowMapper.h +++ b/gfx/gl/shadowMapper.h @@ -11,7 +11,11 @@ class ShadowMapper { public: ShadowMapper(const glm::ivec2 & size); - std::array update(const SceneProvider &, const glm::vec3 & direction, const Camera &) const; + template struct Definitions { + std::array projections; + std::array regions; + }; + Definitions<1> update(const SceneProvider &, const glm::vec3 & direction, const Camera &) const; class FixedPoint : public Program { public: -- cgit v1.2.3