less comments & constant

This commit is contained in:
Sam Gateau 2017-06-26 16:56:04 +02:00
parent 6ab2dccd38
commit 5e05c41980

View file

@ -432,11 +432,8 @@ void DebugDeferredBuffer::run(const RenderContextPointer& renderContext, const I
batch.setResourceTexture(Lighting, deferredFramebuffer->getLightingTexture()); batch.setResourceTexture(Lighting, deferredFramebuffer->getLightingTexture());
} }
// auto deferredLightingEffect = DependencyManager::get<DeferredLightingEffect>(); auto lightStage = renderContext->_scene->getStage<LightStage>();
auto lightStage = renderContext->_scene->getStage<LightStage>("LIGHT_STAGE");
// assert(deferredLightingEffect->getLightStage()->getNumLights() > 0);
assert(lightStage->getNumLights() > 0); assert(lightStage->getNumLights() > 0);
// auto lightAndShadow = deferredLightingEffect->getLightStage()->getLightAndShadow(0);
auto lightAndShadow = lightStage->getLightAndShadow(0); auto lightAndShadow = lightStage->getLightAndShadow(0);
const auto& globalShadow = lightAndShadow.second; const auto& globalShadow = lightAndShadow.second;
if (globalShadow) { if (globalShadow) {