History

changing the atmoshpere position

Sam Gateau committed 11 years ago

Commit 2fdcbb11 parent 56758752 files · +4 −6Browse files

Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all

Unified · Split

interface/src/Application.cpp+0−2
@@ -2505,8 +2505,6 @@ void Application::loadViewFrustum(Camera& camera, ViewFrustum& viewFrustum) { · 2504 unmodified lines
2505}2505}
2506 2506
2507glm::vec3 Application::getSunDirection() {2507glm::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 origin2508 // 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}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t