[][src]Enum pbrt::core::light::Light

pub enum Light {
    DiffuseArea(Box<DiffuseAreaLight>),
    Distant(Box<DistantLight>),
    GonioPhotometric(Box<GonioPhotometricLight>),
    InfiniteArea(Box<InfiniteAreaLight>),
    Point(Box<PointLight>),
    Projection(Box<ProjectionLight>),
    Spot(Box<SpotLight>),
}

Variants

DiffuseArea(Box<DiffuseAreaLight>)
Distant(Box<DistantLight>)
GonioPhotometric(Box<GonioPhotometricLight>)
InfiniteArea(Box<InfiniteAreaLight>)
Point(Box<PointLight>)
Projection(Box<ProjectionLight>)
Spot(Box<SpotLight>)

Implementations

impl Light[src]

pub fn sample_li<'a, 'b>(
    &'b self,
    iref: &'a InteractionCommon,
    light_intr: &'b mut InteractionCommon,
    u: Point2f,
    wi: &mut Vector3f,
    pdf: &mut Float,
    vis: &mut VisibilityTester<'a, 'b>
) -> Spectrum
[src]

Returns the radiance arriving at a point at a certain time due to the light, assuming there are no occluding objects between them.

pub fn power(&self) -> Spectrum[src]

pub fn preprocess(&self, scene: &Scene)[src]

pub fn le(&self, ray: &Ray) -> Spectrum[src]

pub fn pdf_li(&self, iref: &dyn Interaction, wi: &Vector3f) -> Float[src]

pub fn sample_le(
    &self,
    u1: Point2f,
    u2: Point2f,
    time: Float,
    ray: &mut Ray,
    n_light: &mut Normal3f,
    pdf_pos: &mut Float,
    pdf_dir: &mut Float
) -> Spectrum
[src]

pub fn pdf_le(
    &self,
    ray: &Ray,
    n_light: &Normal3f,
    pdf_pos: &mut Float,
    pdf_dir: &mut Float
)
[src]

pub fn get_flags(&self) -> u8[src]

pub fn get_n_samples(&self) -> i32[src]

pub fn l(&self, intr: &InteractionCommon, w: &Vector3f) -> Spectrum[src]

Auto Trait Implementations

impl !RefUnwindSafe for Light

impl Send for Light

impl Sync for Light

impl Unpin for Light

impl !UnwindSafe for Light

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.