[−][src]Function pbrt::core::integrator::uniform_sample_one_light
pub fn uniform_sample_one_light(
it: &SurfaceInteraction,
scene: &Scene,
sampler: &mut Box<dyn Sampler + Send + Sync>,
handle_media: bool,
light_distrib: Option<&Distribution1D>
) -> Spectrum
Estimate direct lighting for only one randomly chosen light and multiply the result by the number of lights to compensate.