diff --git a/src/texture/mod.rs b/src/texture/mod.rs index e69de29..dd0b924 100644 --- a/src/texture/mod.rs +++ b/src/texture/mod.rs @@ -0,0 +1,8 @@ +use super::core::LinearColor; +use super::Point2D; + +/// Represent an object's texture. +pub trait Texture: std::fmt::Debug { + /// Get the color at a given texel coordinate + fn texel_color(&self, point: Point2D) -> LinearColor; +}