pub fn depth_sort(faces: &mut [Face], struts: &mut [Strut], cam: &Camera)Available on crate feature
raster only.Expand description
Stable painter’s depth sort: farthest-first, keyed on each primitive’s centroid camera-space depth. Stable so equal-depth primitives keep scene (insertion) order — no draw-order nondeterminism. Bounded: one pass over each finite slice.