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
35 assert(renderContext->args);35 assert(renderContext->args);
36 assert(renderContext->args->hasViewFrustum());36 assert(renderContext->args->hasViewFrustum());
37 37
38 // auto lightStage = DependencyManager::get<DeferredLightingEffect>()->getLightStage();38 auto lightStage = renderContext->_scene->getStage<LightStage>();
39 auto lightStage = renderContext->_scene->getStage<LightStage>("LIGHT_STAGE");
40 39
41 LightStage::Index globalLightIndex { 0 };40 LightStage::Index globalLightIndex { 0 };
42 41
@@ -141,8 +140,7 @@ void RenderShadowTask::configure(const Config& configuration) { · 98 unmodified lines
141}140}
142 141
143void RenderShadowSetup::run(const render::RenderContextPointer& renderContext, Output& output) {142void RenderShadowSetup::run(const render::RenderContextPointer& renderContext, Output& output) {
144 // auto lightStage = DependencyManager::get<DeferredLightingEffect>()->getLightStage();143 auto lightStage = renderContext->_scene->getStage<LightStage>();
145 auto lightStage = renderContext->_scene->getStage<LightStage>("LIGHT_STAGE");
146 const auto globalShadow = lightStage->getShadow(0);144 const auto globalShadow = lightStage->getShadow(0);
147 145
148 // Cache old render args146 // Cache old render args