Fork me on GitHub
Solid Operations with Distance Field Path Tracing

Distance Field Path Tracing is a ray marching technique where we don't find the exact intersection between the model and the ray, we only estimate which is the nearest object along the ray. For this method we need to define a signed distance function for all shapes, and with these we can calculate solid operations very easily. The implementation is based on this great article, camera handling and other calculations made by jsmodeler.