mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:29:03 +02:00
adding a comment to explain what we are doing
This commit is contained in:
parent
7af3aa53ac
commit
7ea790aa4f
1 changed files with 4 additions and 0 deletions
|
@ -478,6 +478,8 @@ void RenderDeferredSetup::run(const render::SceneContextPointer& sceneContext, c
|
||||||
// Setup the global directional pass pipeline
|
// Setup the global directional pass pipeline
|
||||||
{
|
{
|
||||||
if (deferredLightingEffect->_shadowMapEnabled) {
|
if (deferredLightingEffect->_shadowMapEnabled) {
|
||||||
|
// If the keylight has an ambient Map then use the Skybox version of the pass
|
||||||
|
// otherwise use the ambient sphere version
|
||||||
if (keyLight->getAmbientMap()) {
|
if (keyLight->getAmbientMap()) {
|
||||||
program = deferredLightingEffect->_directionalSkyboxLightShadow;
|
program = deferredLightingEffect->_directionalSkyboxLightShadow;
|
||||||
locations = deferredLightingEffect->_directionalSkyboxLightShadowLocations;
|
locations = deferredLightingEffect->_directionalSkyboxLightShadowLocations;
|
||||||
|
@ -486,6 +488,8 @@ void RenderDeferredSetup::run(const render::SceneContextPointer& sceneContext, c
|
||||||
locations = deferredLightingEffect->_directionalAmbientSphereLightShadowLocations;
|
locations = deferredLightingEffect->_directionalAmbientSphereLightShadowLocations;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// If the keylight has an ambient Map then use the Skybox version of the pass
|
||||||
|
// otherwise use the ambient sphere version
|
||||||
if (keyLight->getAmbientMap()) {
|
if (keyLight->getAmbientMap()) {
|
||||||
program = deferredLightingEffect->_directionalSkyboxLight;
|
program = deferredLightingEffect->_directionalSkyboxLight;
|
||||||
locations = deferredLightingEffect->_directionalSkyboxLightLocations;
|
locations = deferredLightingEffect->_directionalSkyboxLightLocations;
|
||||||
|
|
Loading…
Reference in a new issue