[][src]Trait pbrt::core::texture::Texture

pub trait Texture<T>: Debug where
    T: Debug
{ fn evaluate(&self, _si: &SurfaceInteraction) -> T; }

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.

Loading content...

Implementations on Foreign Types

impl<T> Texture<T> for Box<dyn Texture<T>> where
    T: Debug
[src]

Helper definition so boxed Textures are usable as Texture trait objects.

Loading content...

Implementors

impl<T> Texture<T> for ConstantTexture<T> where
    T: Clone + Debug
[src]

fn evaluate(&self, _si: &SurfaceInteraction) -> T[src]

Implements evaluate that just returns the same value for any SurfaceInteraction

Loading content...