Crate rayimg

Source

Modules§

  • Simple materials which scatter light.
  • Math needed for ray tracing.
  • List of hittable shapes.

Structs§

  • This structure is a simple Camera which casts ray to lower left corner of its viewport.
  • Record of ray-object intersection.
  • Writes bytes (i.e. [u8; 3]) to *.ppm files.
  • Color structure with components in interval 0.0..=1.0.
  • Renders scene to some image (or buffer).
  • Scene contains information about hittable objects. It’s also hittable.

Traits§

  • An object that ray can Hit.
  • ImageWrite defines pixel order starting from upper left corner and image size.
  • Describes material scattering properties.