API

Function enableThinInstanceGpuCulling

  • Enable or disable GPU frustum culling for an existing thin-instanced mesh.

    Call this after setThinInstances()/addThinInstance() and before registerScene(). The render system keeps the feature opt-in so non-culled thin-instance scenes do not fetch the compute-culling module or allocate compacted visible-instance buffers.

    Parameters

    • mesh: Mesh
    • enabled: boolean = true

    Returns void