summaryrefslogtreecommitdiff
path: root/gfx/gl/shadowMapper.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-01 15:53:54 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-01 15:53:54 +0000
commit69e6b7d2d349dcc42d2d415a72181ba729d5a19d (patch)
tree5d7dff2f2775701069806eceb4eaef23b22eba3f /gfx/gl/shadowMapper.cpp
parentRemove legacy Position types from shadowMapper (diff)
downloadilt-69e6b7d2d349dcc42d2d415a72181ba729d5a19d.tar.bz2
ilt-69e6b7d2d349dcc42d2d415a72181ba729d5a19d.tar.xz
ilt-69e6b7d2d349dcc42d2d415a72181ba729d5a19d.zip
Remove more use of legacy types
Diffstat (limited to 'gfx/gl/shadowMapper.cpp')
-rw-r--r--gfx/gl/shadowMapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/shadowMapper.cpp b/gfx/gl/shadowMapper.cpp
index 6c8400e..1498bb0 100644
--- a/gfx/gl/shadowMapper.cpp
+++ b/gfx/gl/shadowMapper.cpp
@@ -130,7 +130,7 @@ ShadowMapper::update(const SceneProvider & scene, const Direction3D & dir, const
glClear(GL_DEPTH_BUFFER_BIT);
glCullFace(GL_FRONT);
- const auto lightViewDir = glm::lookAt(origin, dir, up);
+ const auto lightViewDir = glm::lookAt({}, dir, up);
const auto lightViewPoint = camera.getPosition();
const auto bandViewExtents = getBandViewExtents(camera, lightViewDir);