Function antler::shadow

source · []
pub fn shadow(
    input: &Input<'_>,
    rng: &mut ThreadRng,
    ray: &Ray,
    norm: &Unit<Vector3<f64>>
) -> f64
Expand description

Calculate the shadowing factor. Zero completely enshrouded. Unity no shadows.