Trait PhaseFunction
pbrt::core::medium
pub trait PhaseFunction { fn p(&self, wo: &Vector3f, wi: &Vector3f) -> Float; fn sample_p(&self, wo: &Vector3f, wi: &mut Vector3f, u: &Point2f) -> Float; }
fn p(&self, wo: &Vector3f, wi: &Vector3f) -> Float
fn sample_p(&self, wo: &Vector3f, wi: &mut Vector3f, u: &Point2f) -> Float
impl PhaseFunction for HenyeyGreenstein