← The Lab

08 / Three.js · Shaders

Coffee Smoke

Coffee Smoke — steam rising from a black coffee mug on a wood table via a procedural shader

Lab notes

This experiment makes rising coffee steam with a custom shader on a tall plane. One noise map shapes both the motion and the look of the vapor, sitting above a baked cup and table so the effect feels grounded in a real scene.

Techniques

Vertex deformation for twist and wind—calm near the cup, more drift toward the top. Fragment shading with scrolling Perlin noise, soft edge falloff, and a warm steam tint.

Transparent blending over a baked GLTF environment keeps the plume soft without a particle system.

Stack

Three.js, custom GLSL, Perlin noise texture, GLTF baked scene, ShaderMaterial, Vite. Static WebGL demo on GitHub Pages.