An implementation of Peter Shirley's Ray Tracing in One Weekend in Odin.
At the core, the ray tracer sends rays through pixels and computes the color seen in the direction of those rays.
-- Peter Shirley, Ray Tracing in One Weekend
Shirley's high-level explanation of a ray tracer may be broken down further into the following steps:
- Calculate ray from camera to pixel.
- Determine which objects this ray hits.
- Compute a color for that point.
Because this ray tracer, or path tracer more specifically, is an implementation of Shirley's work, it follows this model.
This script serves as a very simple wrapper for the Odin compiler.
./run.shImages output by the ray tracer are available under images/.