History

Expose global light through DeferredLighting singleton

Zach Pomerantz committed 10 years ago

Commit 70cc7d81 parent e471dcc2 files · +6 −1Browse files

Showing the changes to libraries/render-utils/src/DeferredLightingEffect.cpp (1 of 2 files). Show all

Unified · Split

libraries/render-utils/src/DeferredLightingEffect.cpp+4−0
@@ -541,6 +541,10 @@ void DeferredLightingEffect::setGlobalLight(const glm::vec3& direction, const gl · 540 unmodified lines
541541 light->setAmbientIntensity(ambientIntensity);
542542 }
543543
544+model::LightPointer DeferredLightingEffect::getGlobalLight() {
545+ return _allocatedLights[_globalLights.front()];
546+}
547+
544548 void DeferredLightingEffect::setGlobalSkybox(const model::SkyboxPointer& skybox) {
545549 _skybox = skybox;
546550 }

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