06.16 · 3D & Advanced

Volumetric Smoke / 3D Noise

Soft smoke curls upward, drawn as a real 3D cloud. Best for moody backgrounds.

Watch it

It moves by itself. Pause it to look closely, or turn on slow motion to see each part of the movement.

Try it

Change a setting and see the difference as it moves.

Thickness

Thin smoke is wispy; thick smoke hides what is behind.

Speed

How fast the smoke rises.

Detail

More steps look smoother but cost more.

More optionsFewer options

Smoke color

The color of the lit smoke.

The smoke drifts slowly to one side.

Grain hides the stripes that few steps leave.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add volumetric smoke to [the section you want it in]. In a fragment shader, send a ray through a 3D cloud of smooth noise for every pixel and add up how much smoke it passes through, shading each step by how much smoke lies between it and the light, so the plume looks soft, deep and lit from one side. Move the noise upward over time so the smoke rises and curls, and let it drift sideways when the settings include wind. It is costly, so draw fewer pixels and take fewer steps on phones. If the visitor has reduced motion turned on, show the smoke still. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Moody backgrounds
  • Title cards
  • Games
  • Sci-fi themes

Avoid on

  • Behind text
  • Low-power devices