[][src]Struct pbrt::core::reflection::MicrofacetTransmission

pub struct MicrofacetTransmission { /* fields omitted */ }


impl MicrofacetTransmission[src]

pub fn new(
    t: Spectrum,
    distribution: Arc<dyn MicrofacetDistribution + Send + Sync>,
    eta_a: Float,
    eta_b: Float,
    mode: TransportMode
) -> MicrofacetTransmission

Trait Implementations

impl Bxdf for MicrofacetTransmission[src]

fn sample_f(
    wo: &Vector3f,
    wi: &mut Vector3f,
    u: &Point2f,
    pdf: &mut Float,
    _sampled_type: &mut u8
) -> Spectrum

Override sample_f() to use a better importance sampling method than weighted cosine based on the microface distribution

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

Auto Trait Implementations

impl Send for MicrofacetTransmission

impl Sync for MicrofacetTransmission

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

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

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

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>, 

Sets value as a parameter of self.