diff --git a/src/light/mod.rs b/src/light/mod.rs index e69de29..93c46c7 100644 --- a/src/light/mod.rs +++ b/src/light/mod.rs @@ -0,0 +1,8 @@ +use super::core::LinearColor; +use super::Point; + +/// Represent a light in the scene being rendered. +pub trait Light: std::fmt::Debug { + /// Get the illumination of that light on that point. + fn illumination(&self, point: &Point) -> LinearColor; +}