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

pub struct MicrofacetTransmission { /* fields omitted */ }

Methods

impl MicrofacetTransmission[src]

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

Trait Implementations

impl Bxdf for MicrofacetTransmission[src]

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

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