diff options
Diffstat (limited to 'gfx')
-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 1169524..4acdb39 100644 --- a/gfx/gl/shadowMapper.cpp +++ b/gfx/gl/shadowMapper.cpp @@ -35,7 +35,7 @@ ShadowMapper::ShadowMapper(const glm::ivec2 & s) : size {s} glm::mat4x4 ShadowMapper::update(const SceneProvider & scene, const glm::vec3 & dir) const { - const glm::vec3 centre {1200.F, 1200.F, 0.F}; + const glm::vec3 centre {0.F, 0.F, 0.F}; const glm::vec3 range = glm::normalize(dir) * 1800.F; const auto lightProjection = glm::ortho(-1200.F, 1200.F, -1200.F, 1200.F, 0.F, 3600.F); const auto lightView = glm::lookAt(centre - range, centre, north); |