Path tracer written in Scratch

This is a path tracing renderer I wrote in Scratch. At the time, it was the biggest project I'd ever made, and took several months to complete. The renderer works by casting many rays from each pixel into the 3D scene. The rays intersect with surfaces, and create new rays to bounce off of those surfaces, creating detailed reflections. These lights paths connect to the light sources, adding lighting to the scene. Eventually, a photorealistic image of the scene is produced, but it can take hours to converge to that point.

A render of the default scene

Use WASD to move, arrow keys to look around. Enable "Do Pathtracing?" to activate the more realistic renderer. You can also select scenes, mess with camera settings, and configure various aspects of the renderer. Hover the mouse over the right area of the screen to show the menu buttons which can be used to show or hide different controls.