Merge pull request #1653 from Areloch/twiLightZone

Corrects culling of point/spot lights
This commit is contained in:
Areloch 2016-06-21 05:10:53 -05:00 committed by GitHub
commit b7882e7280
5 changed files with 23 additions and 2 deletions

View file

@ -68,7 +68,7 @@ LightBase::LightBase()
mFlareScale( 1.0f )
{
mNetFlags.set( Ghostable | ScopeAlways );
mTypeMask = EnvironmentObjectType | LightObjectType;
mTypeMask = LightObjectType;
mLight = LightManager::createLightInfo();

View file

@ -177,7 +177,8 @@ enum SceneObjectTypeMasks
StaticShapeObjectType |
DynamicShapeObjectType |
EntityObjectType |
ZoneObjectType ), // This improves the result of zone traversals.
ZoneObjectType |
LightObjectType ), // This improves the result of zone traversals.
/// Mask for objects that should be specifically excluded from zone culling.
CULLING_EXCLUDE_TYPEMASK = ( TerrainObjectType |