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

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

Fields

l_emit: Spectrumshape: Arc<Shape>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<Shape>,
    two_sided: bool
) -> Self
[src]

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

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

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

pub fn le(&self, _ray: &mut 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: &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 Send for DiffuseAreaLight

impl Unpin for DiffuseAreaLight

impl Sync for DiffuseAreaLight

impl !UnwindSafe for DiffuseAreaLight

impl !RefUnwindSafe for DiffuseAreaLight

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> SetParameter for T[src]