[][src]Struct pbrt::lights::diffuse::DiffuseAreaLight

pub struct DiffuseAreaLight {
    pub l_emit: Spectrum,
    pub shape: Arc<dyn Shape + Send + Sync>,
    pub two_sided: bool,
    pub area: Float,
    pub flags: u8,
    pub n_samples: i32,
    pub medium_interface: MediumInterface,
}

Fields

l_emit: Spectrumshape: Arc<dyn Shape + Send + Sync>two_sided: boolarea: Floatflags: u8n_samples: i32medium_interface: MediumInterface

Methods

impl DiffuseAreaLight[src]

pub fn new(
    _light_to_world: &Transform,
    medium_interface: &MediumInterface,
    l_emit: &Spectrum,
    n_samples: i32,
    shape: Arc<dyn Shape + Send + Sync>,
    two_sided: bool
) -> Self
[src]

Trait Implementations

impl Light for DiffuseAreaLight[src]

impl AreaLight for DiffuseAreaLight[src]

Auto Trait Implementations

impl Send for DiffuseAreaLight

impl Sync for DiffuseAreaLight

Blanket Implementations

impl<T> From for T[src]

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

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.