The Ray Tracer Challenge



There is a nice, language-agnostic book about ray tracing called “The Ray Tracer Challenge”
I think it makes good case for learning a new language, so I share what I got so far in OCaml:

Hope it’s helpful to someone,


Hi, thanks, this is a cool idea!
In case it is of interest to you, I recently published an old implementation of a toy raytracer here (in lib_test):
It uses an acceleration structure called the bounding interval hierarchy, that had its moment circa ~2007 and which could be of independent interest.


Will check this out, thanks.