diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-19 23:26:32 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-19 23:26:32 +0100 |
commit | dd452f3e9238be954c3ecd325ed11e97a50ec1c3 (patch) | |
tree | ffe8390a875dbd252085ec0ee3ec1cd8cd68a0c7 /gfx/gl/shadowMapper.cpp | |
parent | Shuffle some GL state setting (diff) | |
download | ilt-dd452f3e9238be954c3ecd325ed11e97a50ec1c3.tar.bz2 ilt-dd452f3e9238be954c3ecd325ed11e97a50ec1c3.tar.xz ilt-dd452f3e9238be954c3ecd325ed11e97a50ec1c3.zip |
Persist a single ShadowStenciller within ShadowMapper
Diffstat (limited to 'gfx/gl/shadowMapper.cpp')
-rw-r--r-- | gfx/gl/shadowMapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/shadowMapper.cpp b/gfx/gl/shadowMapper.cpp index ff0634e..d9dd24f 100644 --- a/gfx/gl/shadowMapper.cpp +++ b/gfx/gl/shadowMapper.cpp @@ -80,7 +80,7 @@ ShadowMapper::update(const SceneProvider & scene, const Direction3D & dir, const glCullFace(GL_FRONT); glEnable(GL_DEPTH_TEST); - ShadowStenciller shadowStenciller {dir, up}; + shadowStenciller.setLightDirection(dir, up); for (const auto & [id, asset] : gameState->assets) { if (const auto r = std::dynamic_pointer_cast<const Renderable>(asset)) { r->updateStencil(shadowStenciller); |