Class HZBOcclusionCulling
Occlusion culling system based on Hierarchical Z-Buffer visibility test with a readback. It builds a mipmap chain from the depth buffer and runs a compute shader to test object bounding boxes against it to skip rendering unseen geometry. 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 HZBOcclusionCulling : Object, IOcclusionCulling
Constructors
HZBOcclusionCulling()
Methods
IsVisible(BoundingBox, ref UInt32)
Declaration
[Unmanaged]
public bool IsVisible(BoundingBox bounds, ref uint cullingId)
Parameters
|
BoundingBox
bounds
|
|
System.UInt32
cullingId
|
Returns
|
System.Boolean
|