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§
Implementations§
source§impl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more