Enum rs_pbrt::core::lightdistrib::LightDistribution
source · [−]pub enum LightDistribution {
Uniform(UniformLightDistribution),
Power(PowerLightDistribution),
Spatial(SpatialLightDistribution),
}
Expand description
LightDistribution defines a general interface for classes that provide probability distributions for sampling light sources at a given point in space.
Variants
Uniform(UniformLightDistribution)
Power(PowerLightDistribution)
Spatial(SpatialLightDistribution)
Implementations
sourceimpl LightDistribution
impl LightDistribution
pub fn lookup(&self, p: &Point3f) -> Arc<Distribution1D>
Auto Trait Implementations
impl !RefUnwindSafe for LightDistribution
impl Send for LightDistribution
impl Sync for LightDistribution
impl Unpin for LightDistribution
impl !UnwindSafe for LightDistribution
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