---
title: "Make smoke flipbooks respond to light in Unity"
description: "Make flipbook smoke respond to scene lighting in Unity with a URP Particles/Lit material on Alpha blending and a sheet whose shading fits your sun."
canonical: https://appliedmanifold.com/guides/unity-smoke-lighting/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Guides](https://appliedmanifold.com/guides/)
3.  Lit smoke in Unity

GUIDE // UNITY

# How to make flipbook smoke respond to scene lighting in Unity

Use a lit particle material, such as Particles/Lit in URP with Alpha blending, so your directional light and ambient light brighten, darken and tint the smoke. Unity lights each sprite as a flat card, so the shading inside the frames still has to come from the texture, ideally precomputed with light from the same side as your sun.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [See the examples →](https://appliedmanifold.com/docs/pyrofx/examples/)

-   Godot 4 Available
-   **Unity** Manual setup
-   Unreal Engine Manual setup
-   Roblox Studio Manual setup
-   three.js Available

A draft compile is from $0.05, and new accounts start with $5 of usage.

**SMOKE\_PLUMEFINAL**

![First frame of the smoke\_plume bake](/bakes/smoke_plume/poster.webp)

Smoke plume, 7.0 x 10.8 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-smoke_plume)

01 // WHAT YOU NEED

## Pick the shading that matches your sun

A Spatial Compiler smoke compile stores six-way lighting, the smoke lit from six directions so it can be relit later. `main_pos.png` holds light from the right, above and behind in R, G and B, and `main_neg.png` holds light from the left, below and front. Opacity is the alpha of `main_pos.png`.

A Unity particle material reads one texture, so choose the channel closest to your scene's sun and put it in RGB, with the opacity in alpha. Green of `main_pos.png` (light from above) suits a high sun. For a low sun on the left of the view, red of `main_neg.png` gives side light.

02 // HOW TO

## Set up lit smoke in URP

1.  Build the RGBA texture from the channel you chose and the alpha of `main_pos.png`, or ask your agent for an `export.pack` layout that writes it.
2.  Create a material with the Universal Render Pipeline/Particles/Lit shader. Set Surface Type to Transparent, Blending Mode to Alpha and Base Map to the texture.
3.  Set Base Color to your smoke color. Gray shading in the texture tints cleanly toward brown, white or black.
4.  Assign the material to the Particle System and set Texture Sheet Animation to 8 x 8 at 16 frames per second for the 4 s plume.
5.  Rotate your directional light and change the ambient color to check that the smoke darkens at dusk and takes on the sky's tint.

03 // REAL OUTPUT

## Smoke that climbs and thins

The smoke column is a one-shot left after a burst. It climbs, spreads and thins, and its soft top shows how much the lighting choice matters.

**SMOKE\_COLUMNFINAL**

![First frame of the smoke\_column bake](/bakes/smoke_column/poster.webp)

Smoke column, 8.2 x 9.9 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-smoke_column)

04 // FULL RELIGHTING

## Relighting from all six directions

To relight smoke properly as the sun moves, a shader has to blend all six directions by the light's angle. The six directional values are packed into the positive and negative lighting sheets.

05 // RELATED

## Related pages

-   [Smoke and scene lighting Godot 4Light smoke particles in Godot 4 with a lit material, Backlight and normal maps, or six-way sheets that follow the sun.](https://appliedmanifold.com/guides/godot-smoke-scene-lighting/)
-   [Lit smoke in Unreal Unreal EngineLight flipbook smoke in Unreal Engine with a translucent Default Lit material, and see what full six-way relighting would take.](https://appliedmanifold.com/guides/unreal-lit-smoke/)
-   [Fire glow in Unity UnityMake Unity fire flipbooks glow with an additive HDR material and Bloom, while the smoke stays on a separate alpha-blended material.](https://appliedmanifold.com/guides/unity-fire-glow/)
-   [Unity smoke plume UnityA smoke plume that leans with the wind and loops every 4 seconds, played in Unity by hand today.](https://appliedmanifold.com/effects/unity-smoke-plume/)
-   [Unity VFX UnityFire, smoke, explosion and dust effects in Unity: sprite sheets you set up by hand.](https://appliedmanifold.com/effects/unity-vfx/)
-   [Six-way lightingSix-way lighting stores smoke lit from six directions in two textures, so a shader can relight the flipbook from your scene light.](https://appliedmanifold.com/learn/six-way-lighting/)
-   [OutputsWith the default export, each view writes four sheets, `<view>_pos.png`, `_neg.png`, `_colour.png` and `_aux.png`, plus `layout.json`, two still previews, the animated `preview_anim.png` and `bake_report.json`. Sheets are 8 x 8 tiles of 256 px by default.](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All pages in Guides →](https://appliedmanifold.com/guides/)

[← Fire glow in Unity](https://appliedmanifold.com/guides/unity-fire-glow/)[Flipbook blending in Unity →](https://appliedmanifold.com/guides/unity-flipbook-blending/)

06 // FAQ

## Unity lit smoke questions

[All questions →](https://appliedmanifold.com/faq/)

**README.UNITY\_SMOKE\_LIGHTING**

### How do I make flipbook smoke respond to scene lighting in Unity?

Use a lit transparent particle material such as URP Particles/Lit with Alpha blending. Your scene lights then change the smoke brightness and color.

### Does Unity support six way lighting for smoke?

Yes, with a custom material that reads six directional light channels. The built in Particle System needs a custom shader to blend all six directions.

### How do I combine emissive fire and lit smoke in one Unity effect?

Use two Particle Systems under one parent: an additive unlit system for the flames and a lit alpha blended system for the smoke.

### Which texture channels store the six lighting directions for smoke in Unity?

In Spatial Compiler sheets, main\_pos.png holds light from the right, above and behind in R, G and B, while main\_neg.png holds left, below and front.

## Compile your first effect

You pay per compile and see the price before it runs. New accounts start with $5 of usage.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [Outputs →](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
