Skip to main content

depth_slice

Function depth_slice 

Source
pub fn depth_slice(depth: f32, cluster: &ClusterUniform) -> u32
Expand description

The depth slice containing depth, mirrored by cluster_depth_slice in the built-in shader.

Slice zero absorbs everything before the first boundary. Under a perspective projection the remaining slices are equal in logarithmic depth; under an orthographic one they are equal in linear depth.