Hypertrace

Euclidean fog

One emitter and three balls: red diffuse, green mirror, and blue glass, surrounded by scattering fog.

Build and run locally
cargo run --release -p hypertrace-examples --bin fog

Browser viewer

A white emitter lights fog around red diffuse, green reflective and blue refractive spheres against darkness.

Optional. Requires WebGPU; starts only when requested.

Native requirements and instructions

Drag to look; Tab locks the mouse. WASD moves; Space/C moves up/down; Q/E rolls. Scroll zooms; R resets. The viewer pauses when hidden or outside the page’s visible area. Open viewer separately.

What to observe

Let the image accumulate. Compare the red sphere’s shadow with reflected green light and light bent through the blue sphere into the fog.

Geometry of the three spaces · Scene construction

Screenshots

Click an image to open its full-resolution PNG.

Earlier capture

Earlier approved fog capture with the light and three colored spheres.
Earlier scene revision, preserved as originally published: 640 × 480, 32,768 samples. Original settings and source revision.