mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
Makes point and spot lights be correctly culled with zoning like other objects.
This commit is contained in:
parent
ca4e4fe86d
commit
dfb8f4f5e5
5 changed files with 23 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ LightBase::LightBase()
|
|||
mFlareScale( 1.0f )
|
||||
{
|
||||
mNetFlags.set( Ghostable | ScopeAlways );
|
||||
mTypeMask = EnvironmentObjectType | LightObjectType;
|
||||
mTypeMask = LightObjectType;
|
||||
|
||||
mLight = LightManager::createLightInfo();
|
||||
|
||||
|
|
|
|||
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue