Function random_in_hemisphere

Source
pub fn random_in_hemisphere(normal: Vec3) -> Vec3
Expand description

Returns a random point in the hemisphere around the normal (uniform hemisphere sampling).