mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:02:55 +02:00
Fixing the key light pass with ambient map
This commit is contained in:
parent
48c168fa73
commit
7af3aa53ac
1 changed files with 2 additions and 4 deletions
|
@ -487,10 +487,8 @@ void RenderDeferredSetup::run(const render::SceneContextPointer& sceneContext, c
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (keyLight->getAmbientMap()) {
|
if (keyLight->getAmbientMap()) {
|
||||||
program = deferredLightingEffect->_directionalAmbientSphereLight;
|
program = deferredLightingEffect->_directionalSkyboxLight;
|
||||||
locations = deferredLightingEffect->_directionalAmbientSphereLightLocations;
|
locations = deferredLightingEffect->_directionalSkyboxLightLocations;
|
||||||
//program = deferredLightingEffect->_directionalSkyboxLight;
|
|
||||||
//locations = deferredLightingEffect->_directionalSkyboxLightLocations;
|
|
||||||
} else {
|
} else {
|
||||||
program = deferredLightingEffect->_directionalAmbientSphereLight;
|
program = deferredLightingEffect->_directionalAmbientSphereLight;
|
||||||
locations = deferredLightingEffect->_directionalAmbientSphereLightLocations;
|
locations = deferredLightingEffect->_directionalAmbientSphereLightLocations;
|
||||||
|
|
Loading…
Reference in a new issue