babylon.quarks - v1.0.0
    Preparing search index...

    Type Alias CullingMode

    CullingMode: "always" | "pause" | "pauseAndCatchUp"

    What a system does while no camera can see its particles (Unity's Culling Mode). The BatchedRenderer tests each system's bounds against the active cameras' frusta every frame.

    • 'always' keeps simulating off screen, so an effect is exactly where it would have been when it comes back into view. The default, and the only safe choice for an emitter whose particles reach the screen from off it.
    • 'pause' freezes the system off screen and resumes it where it left off.
    • 'pauseAndCatchUp' freezes it too, then runs the missed time (up to a few seconds) within the renderer's catch-up budget when it is seen again.

    An empty system is never culled, so it can start emitting and grow the bounds that decide its visibility. A system another one emits into is never culled either; its parent decides.

    The cameras tested are the scene's active cameras (scene.activeCameras, or scene.activeCamera), each only for the systems on a layer it renders (camera.layerMask & system.layers.mask). A camera that renders into a render target texture (a mirror, a minimap, a portal) is not one of them: a system seen only through one should keep 'always'.