Crate rayimg
Source - materials
- Simple materials which scatter light.
- math
- Math needed for ray tracing.
- shapes
- List of hittable shapes.
- Camera
- This structure is a simple Camera which casts ray to lower left corner of its viewport.
- HitRecord
- Record of ray-object intersection.
- P3ImageWriter
- Writes bytes (i.e.
[u8; 3]) to *.ppm files. - RGB
- Color structure with components in interval
0.0..=1.0. - Renderer
- Renders scene to some image (or buffer).
- Scene
- Scene contains information about hittable objects. It’s also hittable.
- Hit
- An object that ray can
Hit. - ImageWrite
ImageWrite defines pixel order starting from upper left corner and image size.- Scatter
- Describes material scattering properties.