From 80cfd4e0d5e928c2ffed9c4510441fb950908665 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 28 Dec 2022 15:13:01 +0000 Subject: Initial support for multiple shadow maps in the same texture --- gfx/gl/shadowMapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gfx/gl/shadowMapper.cpp') diff --git a/gfx/gl/shadowMapper.cpp b/gfx/gl/shadowMapper.cpp index 5691de9..76d4390 100644 --- a/gfx/gl/shadowMapper.cpp +++ b/gfx/gl/shadowMapper.cpp @@ -33,7 +33,7 @@ ShadowMapper::ShadowMapper(const glm::ivec2 & s) : size {s} glBindFramebuffer(GL_FRAMEBUFFER, 0); } -glm::mat4x4 +std::array ShadowMapper::update(const SceneProvider & scene, const glm::vec3 & dir, const Camera & camera) const { auto viewExtents = camera.extentsAtDist(1) + camera.extentsAtDist(1000); @@ -67,7 +67,7 @@ ShadowMapper::update(const SceneProvider & scene, const glm::vec3 & dir, const C scene.shadows(*this); glCullFace(GL_BACK); - return lightViewProjection; + return {lightViewProjection}; } ShadowMapper::FixedPoint::FixedPoint() : Program {shadowFixedPoint_vs}, viewProjectionLoc {*this, "viewProjection"} { } -- cgit v1.2.3