[][src]Struct pbrt::lights::spot::SpotLight

pub struct SpotLight {
    pub p_light: Point3f,
    pub i: Spectrum,
    pub cos_total_width: Float,
    pub cos_falloff_start: Float,
    pub flags: u8,
    pub n_samples: i32,
    pub medium_interface: MediumInterface,
    pub light_to_world: Transform,
    pub world_to_light: Transform,
}

Fields

p_light: Point3fi: Spectrumcos_total_width: Floatcos_falloff_start: Floatflags: u8n_samples: i32medium_interface: MediumInterfacelight_to_world: Transformworld_to_light: Transform

Methods

impl SpotLight[src]

pub fn new(
    light_to_world: &Transform,
    medium_interface: &MediumInterface,
    i: &Spectrum,
    total_width: Float,
    falloff_start: Float
) -> Self
[src]

pub fn falloff(&self, w: &Vector3f) -> Float[src]

Trait Implementations

impl Light for SpotLight[src]

fn le(&self, _ray: &mut Ray) -> Spectrum[src]

Default implementation returns no emitted radiance for a ray that escapes the scene bounds.

impl Clone for SpotLight[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for SpotLight

impl Sync for SpotLight

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.