History

less comments & constant

Sam Gateau committed 9 years ago

Commit 6ab2dcc1 parent 7cbeabf2 files · +2 −6Browse files

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

Unified · Split

libraries/render-utils/src/RenderShadowTask.cpp+2−4
@@ -35,8 +35,7 @@ void RenderShadowMap::run(const render::RenderContextPointer& renderContext, · 34 unmodified lines
3535 assert(renderContext->args);
3636 assert(renderContext->args->hasViewFrustum());
3737
38− // auto lightStage = DependencyManager::get<DeferredLightingEffect>()->getLightStage();
39− auto lightStage = renderContext->_scene->getStage<LightStage>("LIGHT_STAGE");
38+ auto lightStage = renderContext->_scene->getStage<LightStage>();
4039
4140 LightStage::Index globalLightIndex { 0 };
4241
@@ -141,8 +140,7 @@ void RenderShadowTask::configure(const Config& configuration) { · 98 unmodified lines
141140 }
142141
143142 void RenderShadowSetup::run(const render::RenderContextPointer& renderContext, Output& output) {
144− // auto lightStage = DependencyManager::get<DeferredLightingEffect>()->getLightStage();
145− auto lightStage = renderContext->_scene->getStage<LightStage>("LIGHT_STAGE");
143+ auto lightStage = renderContext->_scene->getStage<LightStage>();
146144 const auto globalShadow = lightStage->getShadow(0);
147145
148146 // Cache old render args