Selaa lähdekoodia

kills off the presence of a fake light when there are no others in a given scene

Azaezel 11 vuotta sitten
vanhempi
commit
9e404b3707

+ 1 - 1
Engine/source/lighting/advanced/advancedLightBinManager.cpp

@@ -243,7 +243,7 @@ void AdvancedLightBinManager::render( SceneRenderState *state )
       return;
       return;
 
 
    // Get the sunlight. If there's no sun, and no lights in the bins, no draw
    // Get the sunlight. If there's no sun, and no lights in the bins, no draw
-   LightInfo *sunLight = mLightManager->getSpecialLight( LightManager::slSunLightType );
+   LightInfo *sunLight = mLightManager->getSpecialLight( LightManager::slSunLightType, false );
    if( !sunLight && mLightBin.empty() )
    if( !sunLight && mLightBin.empty() )
       return;
       return;