summaryrefslogtreecommitdiff
path: root/gfx/gl/sceneRenderer.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-12-28 15:13:01 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-12-28 15:13:05 +0000
commit80cfd4e0d5e928c2ffed9c4510441fb950908665 (patch)
tree480f819d4bb7eaf7ad6f86c9a2f9bce3c91b09c2 /gfx/gl/sceneRenderer.h
parentRender some train bodies to test shadowing (diff)
downloadilt-80cfd4e0d5e928c2ffed9c4510441fb950908665.tar.bz2
ilt-80cfd4e0d5e928c2ffed9c4510441fb950908665.tar.xz
ilt-80cfd4e0d5e928c2ffed9c4510441fb950908665.zip
Initial support for multiple shadow maps in the same texture
Diffstat (limited to 'gfx/gl/sceneRenderer.h')
-rw-r--r--gfx/gl/sceneRenderer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gfx/gl/sceneRenderer.h b/gfx/gl/sceneRenderer.h
index d7a92b7..a345b4b 100644
--- a/gfx/gl/sceneRenderer.h
+++ b/gfx/gl/sceneRenderer.h
@@ -35,10 +35,11 @@ private:
DirectionalLightProgram();
using Program::use;
- void setDirectionalLight(const glm::vec3 &, const glm::vec3 &, const glm::mat4x4 &) const;
+ void setDirectionalLight(const glm::vec3 &, const glm::vec3 &, const std::span<const glm::mat4x4>) const;
private:
- RequiredUniformLocation directionLoc, colourLoc, lightViewProjectionLoc;
+ RequiredUniformLocation directionLoc, colourLoc, lightViewProjectionLoc, lightViewProjectionCountLoc,
+ lightViewShadowMapRegionLoc;
};
DeferredLightProgram lighting;