Trait crystal_ball::materials::Material
source · pub trait Material: Send + Sync {
// Required methods
fn next_ray(&self, ray: Ray, hit: Hit, rng: &mut TlsWyRand) -> Option<Ray>;
fn get_color(&self, uv: Point2) -> (Color, Color);
}
Expand description
Characterize optical properties of a surface.