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

    Type Alias SortMode

    SortMode: "none" | "distance" | "oldestInFront" | "youngestInFront"

    The order a system's particles are drawn in (Unity's Sort Mode). Alpha blended particles cover what was drawn before them, so the order shows.

    • 'none': as they are. Right for additive blending.
    • 'distance': farthest from the camera first, so nearer particles cover farther ones. The order is computed once a frame, from the first of the scene's active cameras (scene.activeCameras[0], else activeCamera); other cameras, a second viewport or a render target, draw the same order.
    • 'oldestInFront' / 'youngestInFront': by age.

    As in Unity, each system's particles are sorted among themselves, after each fill; the transparent systems are drawn back to front by the centre of their bounds (see VFXBatchSettings.sortingFudge). Trails are not sorted.