Callback used by Layer to calculate the "sort distance" for a MeshInstance, which determines its place in the render order.
The mesh instance.
The position of the camera.
The forward vector of the camera.
Callback used by Layer to calculate the "sort distance" for a MeshInstance, which determines its place in the render order.