Skip to main content

linear_depth_to_ndc

Function linear_depth_to_ndc 

Source
pub fn linear_depth_to_ndc(linear: f32, near: f32, far: f32) -> f32
Expand description

Convert a linear depth value to a NDC z for a given near/far