diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-18 14:23:18 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-18 14:23:18 +0000 |
commit | 348a4cdc6ba1bbf43e1fd7c6217fd2b62a1d605c (patch) | |
tree | b91093ac1ff3d6d1dedc768efcbe0555d8711cd8 /gfx/gl/sceneRenderer.cpp | |
parent | Helper for midpoint of pair (diff) | |
download | ilt-348a4cdc6ba1bbf43e1fd7c6217fd2b62a1d605c.tar.bz2 ilt-348a4cdc6ba1bbf43e1fd7c6217fd2b62a1d605c.tar.xz ilt-348a4cdc6ba1bbf43e1fd7c6217fd2b62a1d605c.zip |
First cut of view scope shadow mapper view
Diffstat (limited to 'gfx/gl/sceneRenderer.cpp')
-rw-r--r-- | gfx/gl/sceneRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/sceneRenderer.cpp b/gfx/gl/sceneRenderer.cpp index b3f2c47..1d7507a 100644 --- a/gfx/gl/sceneRenderer.cpp +++ b/gfx/gl/sceneRenderer.cpp @@ -115,7 +115,7 @@ SceneRenderer::setDirectionalLight( const glm::vec3 & colour, const glm::vec3 & direction, const SceneProvider & scene) const { if (colour.r > 0 || colour.g > 0 || colour.b > 0) { - const auto lvp = shadowMapper.update(scene, direction); + const auto lvp = shadowMapper.update(scene, direction, camera); glBindFramebuffer(GL_FRAMEBUFFER, gBuffer); glViewport(0, 0, size.x, size.y); dirLight.use(); |