---
title: "Six-way lighting channels: which RGBA holds which light"
description: "Six-way lighting packs smoke brightness from six directions into two RGBA images: right, above and behind in one; left, below and front in the other."
canonical: https://appliedmanifold.com/effects/sheets/six-way-channels/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Effects](https://appliedmanifold.com/effects/)
3.  [Sprite sheets](https://appliedmanifold.com/effects/sheets/)
4.  Six-way channels

SHEET FORMAT // SIX WAY

# Which channels hold the six lighting directions

Six-way lighting stores how bright your smoke is when lit from six directions, packed into two RGBA images. One holds right, above and behind, plus opacity, and the other holds left, below and front, plus flame brightness. A shader mixes the six by your light's direction, so the smoke relights when your sun moves.

[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 // HOW IT WORKS

## Six directions in two textures

Six-way lighting means lighting precomputed from six directions so the smoke can be relit. The shader splits your light's direction into three parts (right or left, up or down, front or back), takes the matching channel for each part, weights it by how much the light points that way, and adds ambient light.

Six values fit in two RGBA textures with two alpha channels to spare, so the layout is common. The spare alphas usually carry opacity and an emissive or other mask.

02 // SPATIAL COMPILER

## The channels in Spatial Compiler's sheets

-   `main_pos.png`: R lit from the right, G lit from above, B lit from behind, A opacity.
-   `main_neg.png`: R lit from the left, G lit from below, B lit from the front, A flame brightness.

Directions are relative to the camera that compiled the sheet, side-on by default. `six_way` is a default entry in `export.channels`. Godot 4's `flipbook_6way.gdshader` reads both sheets along with your scene's DirectionalLight3D and ambient light.

03 // OTHER ENGINES

## Use the channels in other engines

Check the channel order your material expects against the sheet layout. `export.pack` can move any channel into any file when a reader expects a different order.

For a quick setup without a six-way shader, use the green channel of `main_pos.png` as brightness, tinted with your smoke color, and its alpha as opacity. The smoke then looks lit from above in every scene.

04 // RELATED

## Related pages

-   [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/)
-   [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/)
-   [Smoke sprite sheetThe looping smoke plume and one-shot smoke column as sprite sheets that relight in Godot 4 and play by hand in other engines.](https://appliedmanifold.com/effects/smoke-sprite-sheet/)
-   [Channel packingHow channel packing fits several grayscale maps into one texture, and how to ask for the sheets repacked into the layout your engine reads.](https://appliedmanifold.com/effects/sheets/channel-packing/)
-   [Flame brightnessHow the sheets keep a white-hot flame core in 8 bits with a square-root encoding, how to decode it, and what the flame warnings mean.](https://appliedmanifold.com/effects/sheets/flame-brightness/)
-   [Smoke plume sprite sheetChimney or wreck smoke as a 4 second looping sprite sheet that leans with the wind, how to change the wind, and how it relights in Godot 4.](https://appliedmanifold.com/effects/smoke-plume-sprite-sheet/)
-   [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 Sprite sheets →](https://appliedmanifold.com/effects/sheets/)

[← Flame brightness](https://appliedmanifold.com/effects/sheets/flame-brightness/)[Channel packing →](https://appliedmanifold.com/effects/sheets/channel-packing/)

05 // FAQ

## Six-way lighting questions

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

**README.SHEETS\_SIX\_WAY\_CHANNELS**

### Which texture channels store the six lighting directions?

Here, R, G and B of main\_pos.png hold right, above and behind, while R, G and B of main\_neg.png hold left, below and front.

### Why are two RGBA textures commonly used for six directional lighting?

Six directions need six channels and two RGBA textures give eight, so the two spare alphas carry opacity and flame brightness.

### How are six directional lightmaps stored for VFX?

They are stored as grayscale brightness per direction, one direction per color channel, in a flipbook grid like any other sheet.

### What is six directional lighting for smoke?

It is lighting precomputed from right, left, above, below, front and back so a shader can mix them for the scene light.

## 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/)
