Trait Material
dasom::material
pub trait Material { fn scatter(&self, ray: Ray, hr: &HitRecord) -> Option<(Ray, Color)>; }
fn scatter(&self, ray: Ray, hr: &HitRecord) -> Option<(Ray, Color)>
impl Material for Dielectric
impl Material for Lambertian
fn scatter(&self, _ray: Ray, hr: &HitRecord) -> Option<(Ray, Color)>
impl Material for Metal