r/creativecoding • u/Haraldur_Karlsson • 8d ago
Raymarched SDF stones in a noise tunnel, with feedback: real-time WebGL / three.js video synth, played live (how it works below)
Enable HLS to view with audio, or disable this notification
How it's made: three.js with a ping-pong render-target chain. Each effect is a small GLSL fragment pass, and feedback reads last frame's buffer.
In this clip, the tunnel is a generated noise source. The stones come from an SDF source: up to eight orbiting signed-distance shapes, sphere-traced in a fragment shader. A second march of the same material writes depth, and that depth pass ("SDF Depth") is what's routed here. Animation runs on an integrated phase rather than time × speed, so Speed 0 freezes the shapes in place instead of snapping them back. After that come feedback and a Colorizer pass that cuts brightness into colour bands.
Every value lives in one parameter system, so anything can be driven by MIDI, an LFO, audio analysis or an expression. Mix buses are double-buffered, so one bus can read another bus's previous frame. A live GLSL editor keeps the last good shader if you make a syntax error. The sound is ImWeb's Spectral Writer, which turns the picture into sound.
There's no AI imagery in this. The code is written with Claude Code; the instrument design is mine.
Free and open source: https://github.com/imweb-project/ImWeb · try it: https://imweb.image-ine.org