mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-16 13:13:53 +00:00
retweaked filter for wether ot not to supress the zonelight culling methods when not in the diffuse pass
This commit is contained in:
parent
d86f8b16e8
commit
866ff49993
3 changed files with 4 additions and 4 deletions
|
|
@ -198,7 +198,7 @@ void LightManager::setSpecialLight( LightManager::SpecialLightTypesEnum type, Li
|
|||
registerGlobalLight( light, NULL );
|
||||
}
|
||||
|
||||
void LightManager::registerGlobalLights( const Frustum *frustum, bool staticLighting, bool cullSceneLights)
|
||||
void LightManager::registerGlobalLights( const Frustum *frustum, bool staticLighting, bool enableZoneLightCulling)
|
||||
{
|
||||
PROFILE_SCOPE( LightManager_RegisterGlobalLights );
|
||||
|
||||
|
|
@ -226,7 +226,7 @@ void LightManager::registerGlobalLights( const Frustum *frustum, bool staticLigh
|
|||
{
|
||||
// Cull the lights using the frustum.
|
||||
getSceneManager()->getContainer()->findObjectList( *frustum, lightMask, &activeLights );
|
||||
if (cullSceneLights)
|
||||
if (enableZoneLightCulling)
|
||||
{
|
||||
for (U32 i = 0; i < activeLights.size(); ++i)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue