[][src]Struct pbrt::core::reflection::Bsdf

pub struct Bsdf {
    pub eta: Float,
    pub ns: Normal3f,
    pub ng: Normal3f,
    pub ss: Vector3f,
    pub ts: Vector3f,
    pub bxdfs: Vec<Arc<dyn Bxdf + Sync + Send>>,
}

Fields

eta: Floatns: Normal3f

shading normal

ng: Normal3f

geometric normal

ss: Vector3fts: Vector3fbxdfs: Vec<Arc<dyn Bxdf + Sync + Send>>

Methods

impl Bsdf[src]

pub fn new(
    si: &SurfaceInteraction,
    eta: Float,
    bxdfs: Vec<Arc<dyn Bxdf + Sync + Send>>
) -> Self
[src]

pub fn num_components(&self, flags: u8) -> u8[src]

pub fn world_to_local(&self, v: &Vector3f) -> Vector3f[src]

pub fn local_to_world(&self, v: &Vector3f) -> Vector3f[src]

pub fn f(&self, wo_w: &Vector3f, wi_w: &Vector3f, flags: u8) -> Spectrum[src]

pub fn sample_f(
    &self,
    wo_world: &Vector3f,
    wi_world: &mut Vector3f,
    u: &Point2f,
    pdf: &mut Float,
    bsdf_flags: u8,
    sampled_type: &mut u8
) -> Spectrum
[src]

Calls the individual Bxdf::sample_f() methods to generate samples.

pub fn pdf(
    &self,
    wo_world: &Vector3f,
    wi_world: &Vector3f,
    bsdf_flags: u8
) -> Float
[src]

Auto Trait Implementations

impl Send for Bsdf

impl Sync for Bsdf

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.