[−][src]Trait pbrt::core::texture::Texture
The Texture
trait allows for sampling a material that varies across the surface of an object.
Required methods
fn evaluate(&self, _si: &SurfaceInteraction) -> T
evaluate
the texture function at given surface location.
Implementations on Foreign Types
impl<T> Texture<T> for Box<dyn Texture<T>> where
T: Debug,
[src]
T: Debug,
Helper definition so boxed Texture
s are usable as Texture
trait objects.
fn evaluate(&self, si: &SurfaceInteraction) -> T
[src]
Implementors
impl<T> Texture<T> for ConstantTexture<T> where
T: Clone + Debug,
[src]
T: Clone + Debug,
fn evaluate(&self, _si: &SurfaceInteraction) -> T
[src]
Implements evaluate that just returns the same value for any SurfaceInteraction