Interactive demo

RTWebGL — Path Tracing in the Browser

A WebGL fragment-shader path tracer with reflective spheres, a Cornell-box style room, and interactive bounce controls — runnable without a dedicated GPU. Increase bounce count to see more reflection depth. WebGL required.

Problem
Real-time ray tracing demos usually require native engines or heavy desktop GPUs, which makes the ideas hard to share.
What I built
A self-contained WebGL renderer that traces rays on the GPU, accumulates reflective bounces, and exposes bounce count + FPS controls.
Approach
GLSL ray-sphere/plane intersection, recursive reflection up to a configurable bounce depth, and a lightweight JS bootstrap around classic WebGL utilities.
Result
An interactive demo you can open in the browser — now embedded on this site.

Open demo fullscreen →