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
435 auto lightStage = renderContext->_scene->getStage<LightStage>();435 auto lightStage = renderContext->_scene->getStage<LightStage>();
436 assert(lightStage);436 assert(lightStage);
437 assert(lightStage->getNumLights() > 0);437 assert(lightStage->getNumLights() > 0);
438 auto lightAndShadow = lightStage->getLightAndShadow(0);438 auto lightAndShadow = lightStage->getCurrentKeyLightAndShadow();
439 const auto& globalShadow = lightAndShadow.second;439 const auto& globalShadow = lightAndShadow.second;
440 if (globalShadow) {440 if (globalShadow) {
441 batch.setResourceTexture(Shadow, globalShadow->map);441 batch.setResourceTexture(Shadow, globalShadow->map);