Skip to main content

partition_draw_objects

Function partition_draw_objects 

Source
pub fn partition_draw_objects(draw_objects: &[DrawObject]) -> (Bvh, Vec<u32>)
Expand description

Partition the draw list into cullable leaves (suitable for BVH insertion) and an always-drawn fallback list. Objects that opt out of culling (skybox, rooms, held props) keep their original draw order via the returned index list; the BVH owns everything else.