Struct arendur::bxdf::lambertian::LambertianRBxdf
[−]
[src]
pub struct LambertianRBxdf { pub reflectance: RGBSpectrumf, }
A lambertian reflection bxdf.
Fields
reflectance: RGBSpectrumf
Methods
impl LambertianRBxdf
[src]
fn new(reflectance: RGBSpectrumf) -> LambertianRBxdf
construction
Trait Implementations
impl Copy for LambertianRBxdf
[src]
impl Clone for LambertianRBxdf
[src]
fn clone(&self) -> LambertianRBxdf
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for LambertianRBxdf
[src]
impl Bxdf for LambertianRBxdf
[src]
fn kind(&self) -> BxdfType
returns the type of the bxdf
fn evaluate(&self, _wo: Vector3f, _wi: Vector3f) -> RGBSpectrumf
evaluate the function given two normalized directions
fn rho_hd(&self, _wo: Vector3f, _samples: &[Point2f]) -> RGBSpectrumf
hemispherical-directional reflectance
fn rho_hh(&self, _samples0: &[Point2f], _samples1: &[Point2f]) -> RGBSpectrumf
hemispherical-hemispherical reflactance
fn is(&self, t: BxdfType) -> bool
check if the type matches
fn evaluate_sampled(
&self,
wo: Vector3f,
u: Point2f
) -> (RGBSpectrumf, Vector3f, Float, BxdfType)
&self,
wo: Vector3f,
u: Point2f
) -> (RGBSpectrumf, Vector3f, Float, BxdfType)
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. Read more
fn evaluate_importance(&self, wo: Vector3f, wi: Vector3f) -> RGBSpectrumf
evaluate the function given two normalized directions, the particle being traced is camera-ray importance, rather than light radiance. Read more
fn evaluate_importance_sampled(
&self,
wo: Vector3f,
u: Point2f
) -> (RGBSpectrumf, Vector3f, Float, BxdfType)
&self,
wo: Vector3f,
u: Point2f
) -> (RGBSpectrumf, Vector3f, Float, BxdfType)
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
fn pdf(&self, wo: Vector3f, wi: Vector3f) -> Float
evalute pdf given the incoming and outgoing direction