---
title: "Make fire light up nearby objects in Godot 4"
description: "Particles do not light the scene. Add an OmniLight3D with a warm color and a flicker script, plus WorldEnvironment glow for the flame, in Godot 4."
canonical: https://appliedmanifold.com/guides/godot-fire-light-nearby-objects/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Guides](https://appliedmanifold.com/guides/)
3.  Fire that lights the scene

GUIDE // GODOT 4

# How to make fire light up nearby objects in Godot 4

Particles do not cast light, so place an OmniLight3D at the base of the fire with a warm color and a range of a few meters, then flicker its energy from a script. Make the flame itself bloom with glow in your WorldEnvironment. One light per fire, or per group of fires, keeps the cost down.

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

**FIREFINAL**

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

Fire, 4.1 x 7.0 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fire)

01 // HOW TO

## Add the light and the glow

1.  Add an `OmniLight3D` as a child of the fire, about a third of the way up the flames.
2.  Set Color to a warm orange, Energy to about 1 to 3 and Range to the distance the fire should reach, 4 to 6 m for a campfire.
3.  Leave Shadow off unless the shadows matter, since a shadowed light draws the objects around it again from the light's point of view.
4.  Attach the flicker script, `fire_light.gd`, to the light.
5.  In your `WorldEnvironment`, turn on Glow and lower HDR Threshold until the flame core blooms.
6.  For the flame material, set Emission or an Unshaded, Add-blended sheet with brightness above 1, so glow picks it up.

fire\_light.gd

```
extends OmniLight3D

@export var base_energy := 2.0
var noise := FastNoiseLite.new()
var t := 0.0

func _ready() -> void:
	noise.frequency = 6.0

func _process(delta: float) -> void:
	t += delta
	light_energy = base_energy * (0.85 + 0.15 * noise.get_noise_1d(t))
```

Noise gives a flicker that wanders instead of jumping, and the small range of 0.7 to 1.0 times base energy keeps the room from strobing.

02 // WITH SPATIAL COMPILER

## A flame that blooms on its own

Ask your agent for a fire and, in Godot 4, it drops the fire into a scene with a shader that adds the flame as HDR light, brighter than plain white, so your WorldEnvironment glow blooms it with no extra material work.

The fire lights itself and its own smoke. It does not light the floor or the walls around it, so you still add the `OmniLight3D` and its flicker script by hand.

03 // COST

## How many fire lights you can afford

The Forward+ renderer handles many lights per screen. The Mobile and Compatibility renderers limit how many lights can touch one mesh, 8 by default, so a street of burning cars needs one light per group of fires.

For fires that burn for the whole level, set the light's Compile Mode to Static and compile it with `LightmapGI`, then keep a dim real-time light only for the flicker.

04 // REAL OUTPUT

## Fire compiles with HDR flame

**WINDOW\_FIREFINAL**

![First frame of the window\_fire bake](/bakes/window_fire/poster.webp)

Window fire, 3.9 x 4.7 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-window_fire)

05 // RELATED

## Related pages

-   [Godot fire Godot 4A looping fire, from a burning wreck to a fire whirl or a window fire, dropped into a Godot 4 scene by your agent.](https://appliedmanifold.com/effects/godot-fire/)
-   [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/)
-   [Loop a fire sheet Godot 4Find why a fire loop pops in Godot 4 and fix it in the sheet, the AnimatedSprite3D or the GPUParticles3D emitter settings.](https://appliedmanifold.com/guides/godot-loop-fire-sprite-sheet/)
-   [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/)
-   [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/)
-   [Bake and wireCall `bake` with a `.pyro.toml` spec and an output folder, then `wire` to write a Godot 4 scene with the six-way shader. `check`, `schema` and `sweep` support the loop.](https://appliedmanifold.com/docs/pyrofx/bake-and-wire/)

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

[← Dust puff on landing](https://appliedmanifold.com/guides/godot-dust-landing-effect/)[Particles facing the camera →](https://appliedmanifold.com/guides/godot-billboard-particles/)

06 // FAQ

## Fire light questions

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

**README.GODOT\_FIRE\_LIGHT\_NEARBY\_OBJECTS**

### How do I make fire illuminate nearby objects using GPUParticles3D in Godot?

Add an OmniLight3D as a child of the GPUParticles3D because particles only draw themselves while the light illuminates surrounding surfaces.

### How do I make an explosion cast dynamic light without spawning too many lights?

Use one OmniLight3D per explosion and fade its energy to 0 with a Tween before freeing it or share one light for nearby blasts.

### How do I make fire particles glow in Godot?

Enable Glow in WorldEnvironment and give the particle material brightness above 1 with Emission or an Unshaded material above the HDR Threshold.

### Is there a light limit per mesh in Godot?

Yes, Forward+ allows many lights per view while Mobile and Compatibility renderers cap lights per mesh at 8 by default.

## 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) [Bake and wire →](https://appliedmanifold.com/docs/pyrofx/bake-and-wire/)

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