Ray Tracer

This is a ray tracer running entirely in your browser: for every pixel, rays are cast from the camera into the scene and bounced around until they escape or run out of bounces. Each bounce picks up ambient, diffuse, and specular light, casts a shadow ray toward the light, and can reflect off mirrors or refract through glass.

Scenes are plain JSON files with spheres, cubes, cones, and checkerboard planes. Use the buttons above the game to go fullscreen and open the settings menu (pick a scene, change the quality, toggle specular highlights, reflections, and glass, and re-render).

This toy was built using AI-assisted development with OpenCode, powered by the oMLX framework running the Qwen3.8-27B-OptiQ 4-bit model locally.