Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function needsDepthSort

    • Order-dependence taxonomy: the modes whose compositing is NON-commutative and therefore requires back-to-front depth sorting. normal alpha-overs a surface; volumetric (emission–absorption, VOLUMETRIC_BLENDING_SPEC.md) attenuates what is behind each splat.

      volumetric is the first SUM-projected sorted mode, deliberately breaking the old alignment "sum ⇒ commutative ⇒ unsorted" — so this predicate is distinct from usesPeakProjection and is the ONLY sanctioned order-dependence test (never infer sortedness from the projection taxonomy or vice versa).

      Parameters

      Returns boolean

      true when mode requires back-to-front depth sorting