Realtime GLSL Pathtracing

What's This?

This is a realtime GLSL pathtracer running live in your browser. Notice the realistic reflections, refractions, caustics, and global illumination; this can only be accomplished using raytracing. Click and drag to move the camera around (moving objects is not yet supported; I may get around to it someday).

A lot of the magic that makes this realtime is that the scene is simplified. For example, the box ranges from -1 to 1. Such allows for static optimizations in the shader, as well as that the scene is fairly simple. I'm also cheating.

Render

Your browser does not seem to support HTML5 canvas.

Render Parameters

Supersampling Factor

Light Color

1⨯1 (none)
2⨯2
4⨯4
8⨯8
16⨯16
Red
Green
Blue

Shader Output