Struct arendur::bxdf::microfacet::Beckmann [] [src]

pub struct Beckmann {
    pub ax: Float,
    pub ay: Float,
}

A Beckmann microfacet distribution

With microfacet distribution specified as $D(\omega_h) = \frac{ \exp{-tan2\theta_h(cos2\phi_h/\alpha_x2+sin2\phi_h/\alpha_y2)} }{ \phi*\alpha_x*\alpha_y*cos4\theta_h }$

Fields

microfacet oriented perpendicular to x-axis

microfacet oriented perpendicular to y-axis

Trait Implementations

impl Copy for Beckmann
[src]

impl Clone for Beckmann
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Beckmann
[src]

Formats the value using the given formatter.

impl MicrofacetDistribution for Beckmann
[src]

Given the macro surface normal wh, returns the differential area of microfacets from that angle Read more

Given a direction w, return masked prjected surface area per visible projected surface area along that direction, assuming this value is independent from wh. Read more

given a uniform sample, return a sampled macro normal wh

fraction of facets visible from w. The masking-shadowing function $G_l$ This interface assumes independence from wh Read more

fraction of facets visible from both w0 and w1 Read more

given wo and a sampled wh, returns the pdf of this sample