Struct rs_pbrt::core::bssrdf::TabulatedBssrdf
source · pub struct TabulatedBssrdf {
pub po_p: Point3f,
pub po_time: Float,
pub po_wo: Vector3f,
pub eta: Float,
pub ns: Normal3f,
pub ss: Vector3f,
pub ts: Vector3f,
pub material: Arc<Material>,
pub mode: TransportMode,
pub table: Arc<BssrdfTable>,
pub sigma_t: Spectrum,
pub rho: Spectrum,
}
Fields§
§po_p: Point3f
§po_time: Float
§po_wo: Vector3f
§eta: Float
§ns: Normal3f
§ss: Vector3f
§ts: Vector3f
§material: Arc<Material>
§mode: TransportMode
§table: Arc<BssrdfTable>
§sigma_t: Spectrum
§rho: Spectrum
Implementations§
source§impl TabulatedBssrdf
impl TabulatedBssrdf
pub fn new( po: &SurfaceInteraction<'_>, material_opt: Option<Arc<Material>>, mode: TransportMode, eta: Float, sigma_a: &Spectrum, sigma_s: &Spectrum, table: Arc<BssrdfTable> ) -> Self
pub fn sw(&self, w: &Vector3f) -> Spectrum
pub fn sp(&self, pi: &SurfaceInteraction<'_>) -> Spectrum
pub fn pdf_sp(&self, pi: &SurfaceInteraction<'_>) -> Float
pub fn sr(&self, r: Float) -> Spectrum
pub fn pdf_sr(&self, ch: RGBEnum, r: Float) -> Float
pub fn sample_sr(&self, ch: RGBEnum, u: Float) -> Float
pub fn s(&self, pi: &SurfaceInteraction<'_>, wi: &Vector3f) -> Spectrum
pub fn sample_s( &self, sc: TabulatedBssrdf, mode: TransportMode, eta: Float, scene: &Scene, u1: Float, u2: Point2f, pdf: &mut Float ) -> (Spectrum, Option<SurfaceInteraction<'_>>)
Trait Implementations§
source§impl Clone for TabulatedBssrdf
impl Clone for TabulatedBssrdf
source§fn clone(&self) -> TabulatedBssrdf
fn clone(&self) -> TabulatedBssrdf
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for TabulatedBssrdf
impl Send for TabulatedBssrdf
impl Sync for TabulatedBssrdf
impl Unpin for TabulatedBssrdf
impl !UnwindSafe for TabulatedBssrdf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more