Struct rs_pbrt::core::lightdistrib::UniformLightDistribution
source · [−]pub struct UniformLightDistribution {
pub distrib: Arc<Distribution1D>,
}
Expand description
The simplest possible implementation of LightDistribution: this returns a uniform distribution over all light sources, ignoring the provided point. This approach works well for very simple scenes, but is quite ineffective for scenes with more than a handful of light sources. (This was the sampling method originally used for the PathIntegrator and the VolPathIntegrator in the printed book, though without the UniformLightDistribution class.)
Fields
distrib: Arc<Distribution1D>
Implementations
Auto Trait Implementations
impl RefUnwindSafe for UniformLightDistribution
impl Send for UniformLightDistribution
impl Sync for UniformLightDistribution
impl Unpin for UniformLightDistribution
impl UnwindSafe for UniformLightDistribution
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more