mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 18:23:22 +02:00
less comments & constant
This commit is contained in:
parent
7cbeabfc29
commit
6ab2dccd38
2 changed files with 2 additions and 6 deletions
|
@ -574,8 +574,6 @@ void LightClusteringPass::run(const render::RenderContextPointer& renderContext,
|
|||
}
|
||||
|
||||
// From the LightStage and the current frame, update the light cluster Grid
|
||||
// auto deferredLightingEffect = DependencyManager::get<DeferredLightingEffect>();
|
||||
// auto lightStage = deferredLightingEffect->getLightStage();
|
||||
auto lightStage = renderContext->_scene->getStage<LightStage>();
|
||||
_lightClusters->updateLightStage(lightStage);
|
||||
_lightClusters->updateLightFrame(lightStage->_currentFrame, lightingModel->isPointLightEnabled(), lightingModel->isSpotLightEnabled());
|
||||
|
|
|
@ -35,8 +35,7 @@ void RenderShadowMap::run(const render::RenderContextPointer& renderContext,
|
|||
assert(renderContext->args);
|
||||
assert(renderContext->args->hasViewFrustum());
|
||||
|
||||
// auto lightStage = DependencyManager::get<DeferredLightingEffect>()->getLightStage();
|
||||
auto lightStage = renderContext->_scene->getStage<LightStage>("LIGHT_STAGE");
|
||||
auto lightStage = renderContext->_scene->getStage<LightStage>();
|
||||
|
||||
LightStage::Index globalLightIndex { 0 };
|
||||
|
||||
|
@ -141,8 +140,7 @@ void RenderShadowTask::configure(const Config& configuration) {
|
|||
}
|
||||
|
||||
void RenderShadowSetup::run(const render::RenderContextPointer& renderContext, Output& output) {
|
||||
// auto lightStage = DependencyManager::get<DeferredLightingEffect>()->getLightStage();
|
||||
auto lightStage = renderContext->_scene->getStage<LightStage>("LIGHT_STAGE");
|
||||
auto lightStage = renderContext->_scene->getStage<LightStage>();
|
||||
const auto globalShadow = lightStage->getShadow(0);
|
||||
|
||||
// Cache old render args
|
||||
|
|
Loading…
Reference in a new issue