History

CLean up before pr

Sam Gateau committed 11 years ago

Commit fcb293d1 parent a7572294 files · +42 −74Browse files

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

Unified · Split

interface/src/Application.cpp+0−4
@@ -2493,8 +2493,6 @@ void Application::loadViewFrustum(Camera& camera, ViewFrustum& viewFrustum) { · 2492 unmodified lines
24932493
24942494 glm::vec3 Application::getSunDirection() {
24952495 // Sun direction is in fact just the location of the sun relative to the origin
2496− // return glm::normalize(_environment.getClosestData(_myCamera.getPosition()).getSunLocation(_myCamera.getPosition()));
2497−
24982496 auto skyStage = DependencyManager::get<SceneScriptingInterface>()->getSkyStage();
24992497 return skyStage->getSunLight()->getDirection();
25002498 }
@@ -2875,9 +2873,7 @@ void Application::displaySide(Camera& theCamera, bool selfAvatarOnly, RenderArgs · 374 unmodified lines
28752873
28762874 {
28772875 DependencyManager::get<DeferredLightingEffect>()->setAmbientLightMode(getRenderAmbientLight());
2878− // DependencyManager::get<DeferredLightingEffect>()->setGlobalLight(-getSunDirection(), GLOBAL_LIGHT_COLOR, GLOBAL_LIGHT_INTENSITY);
28792876 auto skyStage = DependencyManager::get<SceneScriptingInterface>()->getSkyStage();
2880−// DependencyManager::get<DeferredLightingEffect>()->setGlobalLight(-getSunDirection(), GLOBAL_LIGHT_COLOR, skyStage->_light->getIntensity());
28812877 DependencyManager::get<DeferredLightingEffect>()->setGlobalLight(skyStage->getSunLight()->getDirection(), skyStage->getSunLight()->getColor(), skyStage->getSunLight()->getIntensity());
28822878
28832879 PROFILE_RANGE("DeferredLighting");

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