core:: lightdistrib:: UniformLightDistribution
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.)
pub fn lookup(&self, _p: &Point3f) -> Arc<Distribution1D>[src]
Given a point |p| in space, this method returns a (hopefully effective) sampling distribution for light sources at that point.
Auto Trait Implementations
impl RefUnwindSafe for UniformLightDistribution
impl Send for UniformLightDistribution
impl Sync for UniformLightDistribution
impl Unpin for UniformLightDistribution
impl UnwindSafe for UniformLightDistribution
type Error = Infallible
The type returned in the event of a conversion error.