[−][src]Module tray_rust::mc
Defines various Monte Carlo sampling functions for sampling points/directions on objects and computing the corresponding pdfs
Functions
concentric_sample_disk | Compute concentric sample positions on a unit disk mapping input from range [0, 1)
to sample positions on a disk
|
cos_hemisphere_pdf | Compute the PDF of the cosine weighted hemisphere sampling |
cos_sample_hemisphere | Sample a hemisphere using a cosine distribution to produce cosine weighted samples
|
power_heuristic | Power heuristic for multiple importance sampling for two functions being sampled, f & g where beta is hard-coded to be two following PBR & Veach |
uniform_cone_pdf | Return the PDF for uniformly sampling a cone with some max solid angle |
uniform_sample_cone | Uniformly sample a direction in a cone with max angle |
uniform_sample_cone_frame | Uniformly sample a direction in a cone with max angle |
uniform_sample_sphere | Uniformly sample a direction on the unit sphere about the origin |