---
title: "Store HDR flame brightness in an 8-bit sprite sheet"
description: "Flame cores are brighter than white. The sheets store flame brightness as a square root against the clip maximum, so it fits 8 bits and decodes to HDR."
canonical: https://appliedmanifold.com/effects/sheets/flame-brightness/
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.  Flame brightness

SHEET FORMAT // FLAME

# How a sprite sheet stores flame brighter than white

Your fire's core is brighter than white, more than an 8-bit image holds directly. The sheets store flame brightness as a square root against the clip's brightest value, so the white-hot core survives in 8 bits, and you square it back when you draw. Godot 4 adds the result as light that can bloom.

[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.

**FIREBALLFINAL**

![First frame of the fireball bake](/bakes/fireball/poster.webp)

Fireball, 9.4 x 13.4 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fireball)

01 // HOW IT WORKS

## Why flame needs HDR

Flame cores are many times brighter than the smoke around them. An 8-bit channel tops out at 1.0, so a plain sheet either clips the core to flat white or dims the whole fire. Engines draw flame as emissive light, often in HDR, so bloom can spread it into a glow.

02 // SPATIAL COMPILER

## Where the flame lives in these sheets

-   Brightness: the alpha of `main_neg.png`, stored as the square root of the brightness divided by the clip's maximum.
-   The maximum: `scales.emit_max_hdr` in `layout.json`.
-   Color: the RGB of `main_colour.png`.

To decode, square the alpha, multiply it by `scales.emit_max_hdr`, and multiply the flame color by the result. In Godot 4 the wired shader does this and adds the flame as HDR light, so WorldEnvironment glow can bloom it.

03 // TUNING

## When the core looks pale or clipped

The compile report checks the flame. `PALE_CORE` means no flame pixel nears white, and the fix starts with `look.exposure`. `FLAME_CLIPPED` means over a tenth of flame pixels sit at the encoding limit, so lower `look.exposure` or pick a higher-precision `export.format`. `FLAME_NOT_EXPORTED` means the effect has flame but no sheet carries it, because `emissive` is missing from `export.channels`.

Ask your agent for a brighter or a duller fire in plain words, and it adjusts these for you.

04 // RELATED

## Related pages

-   [HDR emissive fireHDR emissive fire stores flame brightness above white, so bloom makes the core glow while the smoke stays lit by the scene.](https://appliedmanifold.com/learn/hdr-emissive-fire/)
-   [Emissive fire in Niagara Unreal EngineMake a flipbook fire glow in Unreal Engine with an unlit additive material that decodes flame color and brightness from two sheets.](https://appliedmanifold.com/guides/unreal-emissive-fire/)
-   [Fire glow in Roblox Roblox StudioMake flipbook fire glow in Roblox Studio with LightEmission, Brightness, a BloomEffect and a PointLight.](https://appliedmanifold.com/guides/roblox-fire-glow/)
-   [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/)
-   [PNG or EXRWhen to use 8-bit PNG, 16-bit PNG or EXR for a VFX sprite sheet, how flame stays bright in 8 bits, and how to import data sheets.](https://appliedmanifold.com/effects/sheets/png-vs-exr/)
-   [Fireball sprite sheetA fuel fireball as a 3.7 second one-shot sprite sheet, why its frames bunch at the start, and how to play it once in Godot 4 and by hand.](https://appliedmanifold.com/effects/fireball-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/)

[← Depth fade](https://appliedmanifold.com/effects/sheets/depth-fade/)[Six-way channels →](https://appliedmanifold.com/effects/sheets/six-way-channels/)

05 // FAQ

## Flame brightness questions

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

**README.SHEETS\_FLAME\_BRIGHTNESS**

### Where should emissive data be stored for smoke and fire effects?

Store it in its own channel apart from smoke opacity and lighting. Here brightness is the alpha of main\_neg.png and color is main\_colour.png.

### How do I make a Niagara fire flipbook emissive?

Use an unlit material with Additive or Translucent blend mode and drive Emissive Color with color times squared alpha times scales.emit\_max\_hdr.

### How do I make fire particles glow using LightEmission and Brightness?

Set LightEmission to 1 for additive glow, multiply main\_colour.png by the squared alpha of main\_neg.png and set Brightness to scales.emit\_max\_hdr.

### Can I decode the flame brightness in Unity Shader Graph?

Yes. Sample the alpha of main\_neg.png, square it, multiply by scales.emit\_max\_hdr and main\_colour.png and output to an additive unlit particle graph.

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