Get a smoke flipbook that takes your lighting

Describe the smoke and get a looping 64-frame flipbook lit from six directions. Your shader mixes them by your sun's direction, so the smoke shades like the rest of the scene as the light moves.

Smoke column, sun circling the scene

  • 6lighting directions in the sheets
  • 64frames that loop every 4 s
  • $0.10per full-quality compile
  • About 30 sfrom spec to sheets

Rendered in three.js from the compiled sheets while the sun circles the scene once every 8 s. The rocks, ground and sun are three.js. Compiled on the hosted API on 3 December 2026.

Relightable smoke

A smoke flipbook rendered under one light looks wrong the moment your sun moves or the camera turns toward it.

Six-way sheets store how the smoke looks lit from each side, so your shader can light it again for any direction.

What the terms mean

  • Six-way lighting

    Six pictures of the smoke, lit from the right, left, top, bottom, front and back.

    Your shader blends them by the sun's direction, so the lit side follows the sun.

  • Opacity

    How much the smoke hides what is behind it.

    Thin wisps let the sky through and the thick column does not.

  • Loop

    The last frame flows straight into the first.

    The column rises for as long as the scene runs, with no jump.

How it works

  1. Describe the smoke

    Tell your agent where it rises and how the wind blows, such as a grey column from a smouldering pile in a light breeze.

  2. See the price, then compile

    A full-quality compile costs $0.10. Repeat compiles of the same spec are free.

  3. Light it in your engine

    Blend the six lit channels by your sun's direction in the shader. Godot and three.js both run it on one card.

How six-way lighting works

Questions

Why six lighting directions instead of one?

A sheet lit from one side keeps that light forever. With six directions your shader blends a new light for any sun position, so the smoke stays consistent with your scene.

Can the smoke drift with the wind?

Yes. Set the wind in the spec and the column leans and drifts downwind in every frame, then loops.

All use cases

Use with your agent

Paste the prompt into Claude Code, Cursor or Codex. Your agent connects to Spatial Compiler and comes back with three flipbook sheets with six-way lighting, a layout file and a preview.

New accounts start with $5 of usage, and you see the price of each job before it runs.

Agent prompt

Connect the Spatial Compiler MCP server at https://spatialcompiler.dev/mcp if it isn't connected yet. Use pyrofx to compile a looping grey smoke column rising from a smouldering pile in a light breeze, with six-way lighting, motion and depth channels, at full quality. Start with a draft right away and ask before running a final compile.

Or add the server yourself in Claude Code:

claude mcp add --transport http spatial-compiler https://spatialcompiler.dev/mcp

Set it up in Cursor, Codex or another agent

Once connected, your agent can call the starter tool. It returns a ready fire Draft spec and the exact call that runs it. Your first 100 fire Drafts are free with the $5 signup credit.