Class HardwareOcclusionCulling
Occlusion culling system based on hardware occlusion queries. Uses GPU query to determine if the object is visible (not occluded by other geometry) and can be drawn. Results are readback with a few frames latency (objects can pop in fast motion).
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class HardwareOcclusionCulling : Object, IOcclusionCulling
Constructors
HardwareOcclusionCulling()
Initializes a new instance of the HardwareOcclusionCulling.
Declaration
public HardwareOcclusionCulling()
Methods
IsVisible(BoundingBox, ref UInt32)
Declaration
[Unmanaged]
public bool IsVisible(BoundingBox bounds, ref uint cullingId)
Parameters
|
BoundingBox
bounds
|
|
System.UInt32
cullingId
|
Returns
|
System.Boolean
|