pub struct DiffuseAreaLight { /* private fields */ }Implementations§
Trait Implementations§
Source§impl AreaLight for DiffuseAreaLight
impl AreaLight for DiffuseAreaLight
Source§impl Light for DiffuseAreaLight
impl Light for DiffuseAreaLight
fn power(&self) -> Spectrum
fn sample_li( &self, inter: &Interaction, u: &Point2f, ) -> Option<(Spectrum, Vector3f, Float, VisibilityTester)>
fn pdf_li(&self, inter: &Interaction, wi: &Vector3f) -> Float
fn sample_le( &self, u1: &Point2f, u2: &Point2f, _time: Float, ) -> Option<(Spectrum, Ray, Normal3f, Float, Float)>
fn pdf_le(&self, ray: &Ray, n: &Normal3f) -> Option<(Float, Float)>
fn get_light_flags(&self) -> u32
fn get_sample_count(&self) -> u32
fn as_area_light(&self) -> Option<&dyn AreaLight>
fn preprocess(&self, _scene: &Scene)
fn le(&self, _r: &RayDifferential) -> Spectrum
fn is_infinite(&self) -> bool
fn is_delta(&self) -> bool
fn is_delta_direction(&self) -> bool
fn is_area(&self) -> bool
impl Send for DiffuseAreaLight
impl Sync for DiffuseAreaLight
Auto Trait Implementations§
impl Freeze for DiffuseAreaLight
impl !RefUnwindSafe for DiffuseAreaLight
impl Unpin for DiffuseAreaLight
impl UnsafeUnpin for DiffuseAreaLight
impl !UnwindSafe for DiffuseAreaLight
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more