Skip to main content

hlbvh_split

Function hlbvh_split 

Source
pub fn hlbvh_split(mortons: &[u32]) -> usize
Expand description

Find the split index for a slice of Morton-code-sorted primitives using the highest differing bit (HLBVH strategy).

Returns the split position (0 < split < len).