pub fn sample_hemisphere_uniform(u1: Real, u2: Real) -> Vec3
Uniformly sample a direction on the unit hemisphere (z ≥ 0) given two uniform random numbers u1, u2 ∈ [0, 1).
u1, u2 ∈ [0, 1)
Returns a unit vector (x, y, z) with z ≥ 0.
(x, y, z)
z ≥ 0