Ray Tracing in the Browser using ReasonML
November 23, 2018 -I was reading Peter Shirley's little book Ray Tracing in One Weekend which provides code in C and for fun wanted to try to implement it in Reason. Source code is available here.
Above is a pregenerated image, but you can click the button below to generate a smaller lower quality picture on demand (it takes about 5 seconds to generate on my laptop).
I can't think of many reasons you'd want to do ray tracing in JavaScript, but for now this was a fun little weekend project.