[][src]Enum pbrt::core::reflection::Bxdf

pub enum Bxdf {
    Empty(NoBxdf),
    SpecRefl(SpecularReflection),
    SpecTrans(SpecularTransmission),
    FresnelSpec(FresnelSpecular),
    LambertianRefl(LambertianReflection),
    LambertianTrans(LambertianTransmission),
    OrenNayarRefl(OrenNayar),
    MicrofacetRefl(MicrofacetReflection),
    MicrofacetTrans(MicrofacetTransmission),
    FresnelBlnd(FresnelBlend),
    Fourier(FourierBSDF),
    Bssrdf(SeparableBssrdfAdapter),
    DisDiff(DisneyDiffuse),
    DisSS(DisneyFakeSS),
    DisRetro(DisneyRetro),
    DisSheen(DisneySheen),
    DisClearCoat(DisneyClearCoat),
    Hair(HairBSDF),
}

Variants

Empty(NoBxdf)
SpecRefl(SpecularReflection)
SpecTrans(SpecularTransmission)
FresnelSpec(FresnelSpecular)
LambertianRefl(LambertianReflection)
LambertianTrans(LambertianTransmission)
OrenNayarRefl(OrenNayar)
MicrofacetRefl(MicrofacetReflection)
MicrofacetTrans(MicrofacetTransmission)
FresnelBlnd(FresnelBlend)
Fourier(FourierBSDF)
Bssrdf(SeparableBssrdfAdapter)
DisDiff(DisneyDiffuse)
DisSS(DisneyFakeSS)
DisRetro(DisneyRetro)
DisSheen(DisneySheen)
DisClearCoat(DisneyClearCoat)
Hair(HairBSDF)

Implementations

impl Bxdf[src]

pub fn matches_flags(&self, t: u8) -> bool[src]

pub fn f(&self, wo: &Vector3f, wi: &Vector3f) -> Spectrum[src]

pub fn sample_f(
    &self,
    wo: &Vector3f,
    wi: &mut Vector3f,
    u: &Point2f,
    pdf: &mut Float,
    sampled_type: &mut u8
) -> Spectrum
[src]

Sample the BxDF for the given outgoing direction, using the given pair of uniform samples.

The default implementation uses importance sampling by using a cosine-weighted distribution.

pub fn pdf(&self, wo: &Vector3f, wi: &Vector3f) -> Float[src]

Evaluate the PDF for the given outgoing and incoming directions.

Note: this method needs to be consistent with Bxdf::sample_f().

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

Trait Implementations

impl Clone for Bxdf[src]

Auto Trait Implementations

impl !RefUnwindSafe for Bxdf

impl Send for Bxdf

impl Sync for Bxdf

impl Unpin for Bxdf

impl !UnwindSafe for Bxdf

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.