[−][src]Struct tray_rust::bxdf::microfacet::ggx::GGX
GGX microfacet distribution with Smith shadowing-masking. This is the microfacet model described by Walter et al.
Methods
impl GGX
[src]
Trait Implementations
impl MicrofacetDistribution for GGX
[src]
fn normal_distribution(&self, w_h: &Vector) -> f32
[src]
fn sample(&self, _: &Vector, samples: &(f32, f32)) -> Vector
[src]
fn pdf(&self, w_h: &Vector) -> f32
[src]
fn shadowing_masking(&self, w_i: &Vector, w_o: &Vector, w_h: &Vector) -> f32
[src]
fn monodir_shadowing(&self, v: &Vector, w_h: &Vector) -> f32
[src]
Monodirectional shadowing function from Walter et al., we use the Smith
shadowing-masking which uses the reciprocity of this function.
w
is the incident/outgoing light direction and w_h
is the microfacet normal
impl Clone for GGX
[src]
impl Copy for GGX
[src]
Auto Trait Implementations
impl Send for GGX
impl Sync for GGX
impl Unpin for GGX
impl UnwindSafe for GGX
impl RefUnwindSafe for GGX
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,