From b5d43c82a697cff633aed9bd06df21d1d849052e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 18 Dec 2022 20:12:52 +0000 Subject: Removed unnecessary rounding of view extents --- gfx/gl/shadowMapper.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'gfx/gl/shadowMapper.cpp') 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)); -- cgit v1.2.3