Showing the changes to interface/src/renderer/DeferredLightingEffect.cpp (1 of 4 files). Show all
Unified · Split
| @@ -232,8 +232,8 @@ void DeferredLightingEffect::render() { · 231 unmodified lines | ||
| 232 | 232 | // enlarge the scales slightly to account for tesselation |
| 233 | 233 | const float SCALE_EXPANSION = 0.05f; |
| 234 | 234 | |
| 235 | − const glm::vec3& eyePoint = Application::getInstance()->getDisplayViewFrustum()->getPosition(); | |
| 236 | − float nearRadius = glm::distance(eyePoint, Application::getInstance()->getDisplayViewFrustum()->getNearTopLeft()); | |
| 235 | + const glm::vec3& eyePoint = Application::getInstance()->getViewFrustum()->getPosition(); | |
| 236 | + float nearRadius = glm::distance(eyePoint, Application::getInstance()->getViewFrustum()->getNearTopLeft()); | |
| 237 | 237 | |
| 238 | 238 | if (!_pointLights.isEmpty()) { |
| 239 | 239 | _pointLight.bind(); |