SteevePommier
Theme
Menu background
Background pattern
Reveal
Reveal size10
Density50
Colour
Menu position
Analytics

Materials v7 — Smoke

A pale thread of smoke rising from a glowing orange ember on a dark ground, smooth at first and then breaking into billows. A ray march asks how much smoke is present and how much lies between it and the lamp.

shaders3dnoise

From a small orange ember at the bottom of the frame, a smooth ribbon of pale smoke rises, slowly twisting. Higher up it breaks into soft billows, widens and thins as it climbs. It is lit from the side: bright where it faces the lamp, grey inside, rimmed where light passes through. The meander, twist and flicker repeat each loop, so the plume ends on its first frame.

Every pixel marches a ray through the plume, and at each step the shader measures the smoke there, hiding what lies behind, and takes three coarse samples toward the lamp to measure the shade the smoke casts on itself. Noise on a lattice that repeats along the height is scrolled a whole number of periods per loop, with the large eddies on their own count. One number sets the height where turbulence takes over.