Trait ray_tracing_core::texture::Texture[][src]

pub trait Texture: Sync + Send {
    fn get_id(&self) -> usize;
fn value(&self, uv: &TextureCoordinate, p: &Point3) -> ColorRGBA;
fn has_alpha(&self) -> bool;
fn accept(&self, visitor: &mut dyn Visitor) -> Result<(), Box<dyn Error>>; }

Required methods

fn get_id(&self) -> usize[src]

fn value(&self, uv: &TextureCoordinate, p: &Point3) -> ColorRGBA[src]

Look up color in texture

fn has_alpha(&self) -> bool[src]

fn accept(&self, visitor: &mut dyn Visitor) -> Result<(), Box<dyn Error>>[src]

Loading content...

Implementors

impl Texture for BitmapTexture[src]

impl Texture for CheckerTexture[src]

impl Texture for ColorFilter[src]

impl Texture for ConstantTexture[src]

impl Texture for NoiseTexture[src]

Loading content...