Expand description

Draw random samples from a chosen probability distribution.

Structs

Functions

Uniformly distribute samples over a unit disk.

Returns a weight of cos_theta / PI.

Cosine-weighted hemisphere sampling using Malley’s method.

Reducing the variance according to Veach’s heuristic.

Randomly permute an array of count sample values, each of which has n_dimensions dimensions.

Uniformly sample rays in a cone of directions. Probability density function (PDF).

Uniformly sample rays in a hemisphere. Probability density function (PDF).

Samples in a cone of directions about the (0, 0, 1) axis.

Uniformly sample rays in a hemisphere. Choose a direction.

Uniformly sample rays in a full sphere. Choose a direction.

Probability density function (PDF) of a sphere.