This reverts commit 6d385d9a75de786e0d1f583ad8448c30a9df2492.
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 | // enlarge the scales slightly to account for tesselation | 232 | // enlarge the scales slightly to account for tesselation |
| 233 | const float SCALE_EXPANSION = 0.05f; | 233 | const float SCALE_EXPANSION = 0.05f; |
| 234 | 234 | ||
| 235 | const glm::vec3& eyePoint = Application::getInstance()->getViewFrustum()->getPosition(); | 235 | const glm::vec3& eyePoint = Application::getInstance()->getDisplayViewFrustum()->getPosition(); |
| 236 | float nearRadius = glm::distance(eyePoint, Application::getInstance()->getViewFrustum()->getNearTopLeft()); | 236 | float nearRadius = glm::distance(eyePoint, Application::getInstance()->getDisplayViewFrustum()->getNearTopLeft()); |
| 237 | 237 | ||
| 238 | if (!_pointLights.isEmpty()) { | 238 | if (!_pointLights.isEmpty()) { |
| 239 | _pointLight.bind(); | 239 | _pointLight.bind(); |