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

    Function quarksSortDistance

    • The key a transparent sub mesh is sorted by, back to front. For a draw of the renderer, the distance from the camera to the centre of its first particle system's bounds plus the sorting fudge, as the renderer measured it for the frame from the scene's first active camera; for any other mesh, its distance as Babylon measured it for this draw. For an application with its own transparent compare, to keep quarks' order in it.

      Parameters

      • subMesh: SubMesh

      Returns number