[−][src]Struct tray_rust::bxdf::merl::Merl
BRDF that uses measured data to model the surface reflectance properties. The measured data is from "A Data-Driven Reflectance Model", by Wojciech Matusik, Hanspeter Pfister, Matt Brand and Leonard McMillan, in ACM Transactions on Graphics 22, 3(2003), 759-769
Methods
impl<'a> Merl<'a>
[src]
pub fn new(
brdf: &'a [f32],
n_theta_h: usize,
n_theta_d: usize,
n_phi_d: usize
) -> Merl<'a>
[src]
brdf: &'a [f32],
n_theta_h: usize,
n_theta_d: usize,
n_phi_d: usize
) -> Merl<'a>
Create a MERL BRDF to use data loaded from a MERL BRDF data file
Trait Implementations
impl<'a> BxDF for Merl<'a>
[src]
fn bxdf_type(&self) -> EnumSet<BxDFType>
[src]
fn eval(&self, w_oi: &Vector, w_ii: &Vector) -> Colorf
[src]
fn sample(&self, w_o: &Vector, samples: &(f32, f32)) -> (Colorf, Vector, f32)
[src]
fn matches(&self, flags: EnumSet<BxDFType>) -> bool
[src]
fn pdf(&self, w_o: &Vector, w_i: &Vector) -> f32
[src]
impl<'a> Clone for Merl<'a>
[src]
impl<'a> Copy for Merl<'a>
[src]
Auto Trait Implementations
impl<'a> Send for Merl<'a>
impl<'a> Sync for Merl<'a>
impl<'a> Unpin for Merl<'a>
impl<'a> UnwindSafe for Merl<'a>
impl<'a> RefUnwindSafe for Merl<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,