History

Shadows are now cast by the current zone key light (sun)

Olivier Prat committed 9 years ago

Commit a34db5f1 parent 77935067 files · +48 −17Browse files

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

Unified · Split

libraries/render-utils/src/DebugDeferredBuffer.cpp+1−1
@@ -435,7 +435,7 @@ void DebugDeferredBuffer::run(const RenderContextPointer& renderContext, const I · 434 unmodified lines
435435 auto lightStage = renderContext->_scene->getStage<LightStage>();
436436 assert(lightStage);
437437 assert(lightStage->getNumLights() > 0);
438− auto lightAndShadow = lightStage->getLightAndShadow(0);
438+ auto lightAndShadow = lightStage->getCurrentKeyLightAndShadow();
439439 const auto& globalShadow = lightAndShadow.second;
440440 if (globalShadow) {
441441 batch.setResourceTexture(Shadow, globalShadow->map);