Ray tracing is a light simulation algorithm used for making renderings of 3D scenes. This ray tracer uses WebAssembly to run in the browser at near native speed. This implementation is CPU intensive as the color of each pixel of the canvas is determined through a path tracing algorithm.
The code is available here.