Will Fleming's Software blog

Twitter GitHub
Home

Ray Tracing in the Browser using Reason

23 Nov 2018

Sprite Atlas

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.



View More Blog Posts