Struct arendur::bxdf::specular::SpecularRBxdf [] [src]

pub struct SpecularRBxdf<F> {
    pub reflectance: RGBSpectrumf,
    pub fresnel: F,
}

A specular reflectional bxdf

Fields

Methods

impl<F: Fresnel> SpecularRBxdf<F>
[src]

construction

Trait Implementations

impl<F: Clone> Clone for SpecularRBxdf<F>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<F: Copy> Copy for SpecularRBxdf<F>
[src]

impl<F: Debug> Debug for SpecularRBxdf<F>
[src]

Formats the value using the given formatter.

impl<T: Fresnel> Bxdf for SpecularRBxdf<T>
[src]

returns the type of the bxdf

evaluate the function given two normalized directions.

As specular surfaces are totally specular, this method always returns zero factoring

Given an outgoing direction wo, and a uniform sample u from $[0,1)2$, sample an incoming direction wi, and returns it with function value evaluated as f(wo, wi), as well as the pdf associated with the incoming direction.

Specular surfaces choose the incoming direction wrt wo only, with pdf always equals to one. Evaluation behavior are described by the fresnel factor

check if the type matches

evaluate the function given two normalized directions, the particle being traced is camera-ray importance, rather than light radiance. Read more

Given an outgoing direction wo, and a uniform sample u from $[0,1)2$, sample an incoming direction wi, and returns it with function value evaluated as f(wo, wi), as well as the pdf associated with the incoming direction, as well as the type of the scattering event. The particles being traced is camera-ray importance, rather tan light radiance Read more

evalute pdf given the incoming and outgoing direction

hemispherical-directional reflectance

hemispherical-hemispherical reflactance