Module rustracer::material

source ·
Expand description

Material module.

Provides:

  • Different pigments that implement GetColor trait ;
  • Different BRDF that implement both Eval and ScatterRay trait;
  • A Material thanks to pigments and BRDF.

Structs§

Enums§

Traits§

  • A trait for evaluating a particular BRDF on a parametric surface (u,v).
  • Trait that associates a Color with each point on a parametric surface (u,v).
  • A trait for scatter a Ray for a particular BRDF.