[][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<Bxdf>,


eta: Floatns: Normal3f

shading normal

ng: Normal3f

geometric normal

ss: Vector3fts: Vector3fbxdfs: Vec<Bxdf>


impl Bsdf[src]

pub fn new(si: &SurfaceInteraction<'_>, eta: Float) -> Self[src]

pub fn add(&mut self, b: Bxdf)[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(
    wo_world: &Vector3f,
    wi_world: &mut Vector3f,
    u: &Point2f,
    pdf: &mut Float,
    bsdf_flags: u8,
    sampled_type: &mut u8
) -> Spectrum

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

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

Trait Implementations

impl Clone for Bsdf[src]

Auto Trait Implementations

impl !RefUnwindSafe for Bsdf

impl Send for Bsdf

impl Sync for Bsdf

impl Unpin for Bsdf

impl !UnwindSafe for Bsdf

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.