warp.sample\_unit\_hemisphere ============================= .. currentmodule:: warp._src.lang .. function:: sample_unit_hemisphere(state: uint32) -> vec3f .. wp-function-tags:: :kernel: true :python: true :differentiable: false Uniformly sample a point inside the unit hemisphere (radius <= 1, z >= 0). Returns a ``vec3``. In a kernel, advances ``state`` in place; called from the Python scope, it does not modify ``state``, so repeated calls with the same ``state`` return the same point (see :func:`rand_init`).