[][src]Struct tray_rust::bxdf::microfacet::beckmann::Beckmann

pub struct Beckmann { /* fields omitted */ }

Beckmann microfacet distribution with Smith shadowing-masking. This is the microfacet model described by Walter et al.

Methods

impl Beckmann[src]

pub fn new(w: f32) -> Beckmann[src]

Create a new Beckmann distribution with the desired width

Trait Implementations

impl MicrofacetDistribution for Beckmann[src]

fn monodir_shadowing(&self, v: &Vector, w_h: &Vector) -> f32[src]

Monodirectional shadowing function from Walter et al., we use the Smith shadowing-masking which uses the reciprocity of this function. w is the incident/outgoing light direction and w_h is the microfacet normal

impl Clone for Beckmann[src]

impl Copy for Beckmann[src]

Auto Trait Implementations

impl Send for Beckmann

impl Sync for Beckmann

impl Unpin for Beckmann

impl UnwindSafe for Beckmann

impl RefUnwindSafe for Beckmann

Blanket Implementations

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

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

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

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

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

impl<T> SetParameter for T[src]