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

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

A Trowbridege-Reitz microfacet distribution

with microfacet distribution function specified as $D(\omega_h)=\frac{1}{\pi\alpha_x\alpha_ycos4\theta_h( 1+tan2\theta_h(cos2\phi_h/\alpha_x2+sin2\phi_h/\alpha_y2) )2}

Fields

microfacet oriented perpendicular to x-axis

microfacet oriented perpendicular to y-axis

Trait Implementations

impl Copy for Trowbridge
[src]

impl Clone for Trowbridge
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Trowbridge
[src]

Formats the value using the given formatter.

impl MicrofacetDistribution for Trowbridge
[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