Material

Trait Material 

Source
pub trait Material {
    // Required method
    fn scatter(
        &self,
        ray: Ray,
        rec: HitRecord<'_>,
        rng: &mut ThreadRng,
    ) -> Option<(Color, Ray)>;
}

Required Methods§

Source

fn scatter( &self, ray: Ray, rec: HitRecord<'_>, rng: &mut ThreadRng, ) -> Option<(Color, Ray)>

Implementors§