Showing the changes to libraries/render-utils/src/DeferredLightingEffect.cpp (1 of 2 files). Show all
Unified · Split
| @@ -541,6 +541,10 @@ void DeferredLightingEffect::setGlobalLight(const glm::vec3& direction, const gl · 540 unmodified lines | ||
| 541 | 541 | light->setAmbientIntensity(ambientIntensity); |
| 542 | 542 | } |
| 543 | 543 | |
| 544 | +model::LightPointer DeferredLightingEffect::getGlobalLight() { | |
| 545 | + return _allocatedLights[_globalLights.front()]; | |
| 546 | +} | |
| 547 | + | |
| 544 | 548 | void DeferredLightingEffect::setGlobalSkybox(const model::SkyboxPointer& skybox) { |
| 545 | 549 | _skybox = skybox; |
| 546 | 550 | } |