DecalSphere

Engine/source/T3D/decal/decalSphere.h

A bounding sphere in world space and a list of DecalInstance(s) contained by it.

More...

Public Static Attributes

Public Attributes

Decal instances in this sphere.

World-space sphere corresponding to this DecalSphere.

Zones that intersect with this sphere.

Public Functions

DecalSphere(const Point3F & position, F32 radius)

Recompute mWorldSphere from the current instance list.

Recompute the zoning information from the current bounds.

Detailed Description

A bounding sphere in world space and a list of DecalInstance(s) contained by it.

DecalInstance(s) are organized/binned in this fashion as a lookup and culling optimization.

Public Static Attributes

F32 smDistanceTolerance 
F32 smRadiusTolerance 

Public Attributes

Vector< DecalInstance * > mItems 

Decal instances in this sphere.

SphereF mWorldSphere 

World-space sphere corresponding to this DecalSphere.

Vector< U32 > mZones 

Zones that intersect with this sphere.

If this is empty, the zoning state of the sphere is uninitialized.

Public Functions

DecalSphere()

DecalSphere(const Point3F & position, F32 radius)

tryAddItem(DecalInstance * inst)

updateWorldSphere()

Recompute mWorldSphere from the current instance list.

updateZoning(SceneZoneSpaceManager * zoneManager)

Recompute the zoning information from the current bounds.