Function arendur::sample::sample_uniform_hemisphere [] [src]

pub fn sample_uniform_hemisphere(u: Point2f) -> Vector3f

transform an uniformly sampled u in $[0,1)2$ into uniform samples on a hemisphere