summaryrefslogtreecommitdiff
path: root/gfx/gl/shadowMapper.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-12-18 20:12:52 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-12-18 20:12:52 +0000
commitb5d43c82a697cff633aed9bd06df21d1d849052e (patch)
tree32224a553649ef7e7bf2461f82690a7005d5127c /gfx/gl/shadowMapper.cpp
parentNo need to store view or unView (diff)
downloadilt-b5d43c82a697cff633aed9bd06df21d1d849052e.tar.bz2
ilt-b5d43c82a697cff633aed9bd06df21d1d849052e.tar.xz
ilt-b5d43c82a697cff633aed9bd06df21d1d849052e.zip
Removed unnecessary rounding of view extents
Diffstat (limited to 'gfx/gl/shadowMapper.cpp')
-rw-r--r--gfx/gl/shadowMapper.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/gfx/gl/shadowMapper.cpp b/gfx/gl/shadowMapper.cpp
index b5f2ea5..c6b28ac 100644
--- a/gfx/gl/shadowMapper.cpp
+++ b/gfx/gl/shadowMapper.cpp
@@ -39,9 +39,6 @@ ShadowMapper::update(const SceneProvider & scene, const glm::vec3 & dir, const C
constexpr auto BACK_OFF = 3600.f;
const glm::vec3 range = glm::normalize(dir) * BACK_OFF;
auto viewExtents = camera.extentsAtDist(1) + camera.extentsAtDist(1000);
- for (auto & e : viewExtents) {
- e = glm::round(e);
- }
const auto extents_minmax = [&viewExtents](auto && comp) {
const auto mm = std::minmax_element(viewExtents.begin(), viewExtents.end(), comp);
return std::make_pair(comp.get(*mm.first), comp.get(*mm.second));