software
Ray Tracer
A ray tracer written in pure C, based on Ray Tracing in One Weekend.
- Language
- Pure C
- Based on
- Ray Tracing in One Weekend
- Focus
- The C / C++ language boundary
- C
- Graphics

Rendered preview
- Ray tracer written in pure C, based on "Ray Tracing in One Weekend"
- Ported the book's C++ object-oriented reference implementation to idiomatic C by hand
- Built to get more practice writing non-trivial C and study the C/C++ boundary directly, not just read about it
A ray tracer written in pure C, based on the “Ray Tracing in One Weekend” book.
The book’s reference implementation is C++ and object-oriented. Building this in C meant porting that object-oriented structure by hand. This forced a closer look at what the C++ abstractions were actually doing underneath. Built partly to get more practice writing non-trivial C and to learn the C/C++ boundary from the inside rather than reading about it.