[−][src]Trait raytracer::Material
Basic trait that every material must implement.
Required methods
Loading content...Provided methods
fn into_arc(self) -> Arc<dyn Material> where
Self: Material + Sized + 'static,
Self: Material + Sized + 'static,
Wraps the object implementing this trait with Atomic Rc pointer.
Used for multithreading.
Implementors
impl Material for Glass
[src]
fn scatter(&self, ray_in: &Ray, hit_data: &HitData) -> (Vec3, Ray)
[src]
fn into_arc(self) -> Arc<dyn Material> where
Self: Material + Sized + 'static,
[src]
Self: Material + Sized + 'static,
impl Material for Matte
[src]
fn scatter(&self, _: &Ray, hit_data: &HitData) -> (Vec3, Ray)
[src]
fn into_arc(self) -> Arc<dyn Material> where
Self: Material + Sized + 'static,
[src]
Self: Material + Sized + 'static,