Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -2505,8 +2505,6 @@ void Application::loadViewFrustum(Camera& camera, ViewFrustum& viewFrustum) { · 2504 unmodified lines | |||
| 2505 | } | 2505 | } |
| 2506 | 2506 | ||
| 2507 | glm::vec3 Application::getSunDirection() { | 2507 | glm::vec3 Application::getSunDirection() { |
| 2508 | /* return glm::normalize(_environment.getClosestData(_myCamera.getPosition()).getSunLocation(_myCamera.getPosition()) - | ||
| 2509 | _myCamera.getPosition());*/ | ||
| 2510 | // Sun direction is in fact just the location of the sun relative to the origin | 2508 | // Sun direction is in fact just the location of the sun relative to the origin |
| 2511 | return glm::normalize(_environment.getClosestData(_myCamera.getPosition()).getSunLocation(_myCamera.getPosition())); | 2509 | return glm::normalize(_environment.getClosestData(_myCamera.getPosition()).getSunLocation(_myCamera.getPosition())); |
| 2512 | } | 2510 | } |