Skip to main content

DEPTH_ORDER_SPAN

Constant DEPTH_ORDER_SPAN 

Source
pub const DEPTH_ORDER_SPAN: f32 = 1e-4;
Expand description

Total normalized-depth span reserved for scene-order biasing.

Fragments whose true depth differs by less than this span may be reordered by scene insertion order (later items on top); anything farther apart keeps true depth ordering. The span is split evenly across all items of a frame (epsilon = DEPTH_ORDER_SPAN / item_count) so the total offset does not grow with scene size.