[][src]Trait pbrt::core::lightdistrib::LightDistribution

pub trait LightDistribution {
    fn lookup(&self, p: &Point3f) -> Arc<Distribution1D>;
}

LightDistribution defines a general interface for classes that provide probability distributions for sampling light sources at a given point in space.

Required Methods

Given a point |p| in space, this method returns a (hopefully effective) sampling distribution for light sources at that point.

Implementors

impl LightDistribution for PowerLightDistribution
[src]

impl LightDistribution for SpatialLightDistribution
[src]

impl LightDistribution for UniformLightDistribution
[src]