mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-08 22:59:31 +02:00
Correction.
This commit is contained in:
parent
1357877618
commit
b00db6a68f
1 changed files with 2 additions and 2 deletions
|
@ -498,7 +498,7 @@ void RenderDeferredSetup::run(const render::RenderContextPointer& renderContext,
|
||||||
auto lightStage = renderContext->_scene->getStage<LightStage>();
|
auto lightStage = renderContext->_scene->getStage<LightStage>();
|
||||||
assert(lightStage);
|
assert(lightStage);
|
||||||
assert(lightStage->getNumLights() > 0);
|
assert(lightStage->getNumLights() > 0);
|
||||||
auto lightAndShadow = lightStage->getLightAndShadow(0);
|
auto lightAndShadow = lightStage->getCurrentKeyLightAndShadow();
|
||||||
const auto& globalShadow = lightAndShadow.second;
|
const auto& globalShadow = lightAndShadow.second;
|
||||||
|
|
||||||
// Bind the shadow buffer
|
// Bind the shadow buffer
|
||||||
|
@ -509,7 +509,7 @@ void RenderDeferredSetup::run(const render::RenderContextPointer& renderContext,
|
||||||
auto& program = deferredLightingEffect->_directionalSkyboxLight;
|
auto& program = deferredLightingEffect->_directionalSkyboxLight;
|
||||||
LightLocationsPtr locations = deferredLightingEffect->_directionalSkyboxLightLocations;
|
LightLocationsPtr locations = deferredLightingEffect->_directionalSkyboxLightLocations;
|
||||||
|
|
||||||
auto keyLight = lightStage->getLight(0);
|
auto keyLight = lightAndShadow.first;
|
||||||
|
|
||||||
model::LightPointer keyAmbientLight;
|
model::LightPointer keyAmbientLight;
|
||||||
if (lightStage && lightStage->_currentFrame._ambientLights.size()) {
|
if (lightStage && lightStage->_currentFrame._ambientLights.size()) {
|
||||||
|
|
Loading…
Reference in a new issue