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
sourceimpl 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
sourceimpl Clone for TabulatedBssrdf
impl Clone for TabulatedBssrdf
sourcefn clone(&self) -> TabulatedBssrdf
fn clone(&self) -> TabulatedBssrdf
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for TabulatedBssrdf
impl Send for TabulatedBssrdf
impl Sync for TabulatedBssrdf
impl Unpin for TabulatedBssrdf
impl !UnwindSafe for TabulatedBssrdf
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more