Split the wall into shorter meshes, so that fewer than 8 lights reach each one. The Compatibility renderer, which web exports use, lights each mesh with at most 8 lights: rendering/limits/opengl/max_lights_per_object was 8 in our project. In our Godot 4.7 test 12 lights along one 20 m wall lit only the middle 8 spots. The two at each end left the wall black, brightness 0.03 against 1.0. The same wall built by the script below from 10 pieces showed all 12.

The code
Use this node in place of a long wall or floor mesh and set material. piece is the length of each part: with lights 1.5 m apart, 2 m pieces are each reached by only a few. The same idea works for walls you model yourself: cut long walls and floors into parts before you import them.
extends Node3D
## Builds a long wall out of short pieces, so no single mesh is touched by too many lights.
## The Compatibility renderer (and so web exports) lights each mesh with at most 8 lights:
## on one long wall with a row of signs, the ninth light and beyond do not show at all.
@export var length := 20.0
@export var height := 3.0
@export var thickness := 0.2
@export var piece := 2.0 ## metres per piece. Keep fewer than 8 lights reaching each piece
@export var material: Material
func _ready() -> void:
var n := ceili(length / piece)
var w := length / n
for i in n:
var m := MeshInstance3D.new()
var b := BoxMesh.new()
b.size = Vector3(w, height, thickness)
m.mesh = b
m.material_override = material
m.position = Vector3(-length * 0.5 + (i + 0.5) * w, height * 0.5, -thickness * 0.5)
add_child(m)
What we measured
Twelve OmniLight3Ds 1.5 m apart, 0.5 m in front of a white wall 20 m long, each reaching 0.9 m. We read the wall's brightness straight in front of each light, from 0 to 1.
- One mesh: 0.03, 0.03, then 1.0 for the middle eight, then 0.03, 0.03. 8 spots lit.
- The script, 10 pieces of 2 m: 1.0 in front of all 12 lights.
rendering/limits/opengl/max_lights_per_objectin our project: 8, the default.
Two runs gave the same numbers.
Why the end of the wall goes dark
In the Compatibility renderer each mesh is drawn with a short list of the lights that touch it, and the list holds 8. When more lights than that touch one long mesh, the extra ones are left out for the whole mesh, so a stretch of wall stays dark with a light right in front of it. In our test the lights left out were the ones furthest from the middle of the wall. Smaller meshes each touch only the lights near them, so every light lands on some piece.
What to change
piece: shorter pieces if your lights are closer together or reach further.- The same limit hits long floors, roads and neon-lit alleys, and large terrain meshes.
- The limit itself is the project setting
rendering/limits/opengl/max_lights_per_object. We tested the Compatibility renderer with the default only.
Ready-made neon: Neon Signs & Area Lights for Godot 4.7 has 41 3D neon signs and light fixtures, including OPEN, BAR, HOTEL, RAMEN and ARCADE signs, icons, tube bars, paper lanterns and string lights, each lighting the wall and the wet ground around it.
Tested in Godot 4.7 with the Compatibility renderer.
Ready-made: Neon Signs & Area Lights for Godot 4.7 has 41 ready-made 3D neon signs and light fixtures that light the walls and wet ground around them, including OPEN, BAR, HOTEL and RAMEN signs, paper lanterns and string lights.
More how-tos for Neon Signs & Area Lights for Godot 4.7: A swing that settles the same at any frame rate
More how-tos: Shaders, materials and lights
- A 3D outline that stays the same width on screen
- Find and fix the seam in a repeating texture
- PS1 vertex wobble that is the same near and far
- Snow that stays on the roofs
- Packed ORM maps on a StandardMaterial3D
- Neon signs that share a material but not a colour
- A MatCap that stays the right way up from every side
- Scroll or tile a 2D texture without stretched edge lines
- Keep floors, roads and roofs sharp when the camera looks along them
- Make WorldEnvironment color grading apply to a 2D game
- Get a hard cel-shaded light edge from StandardMaterial3D's Toon mode
- Make metallic materials stop looking black or flat
- Make a glowing sign or screen actually light the wall around it
- Use a LUT strip for color grading in Godot 4
- Tiling textures that keep their size on any mesh
- A sharp low-resolution PS1 look
- Hit flash shader for 2D sprites
- Flash a 3D enemy white when it takes a hit
- Dissolve shader for 3D models
- 2D outline shader that is not cut off
- 3D outline shader without gaps at the corners
- A force field shield with a hit ripple
- Normal map inverted: DirectX vs OpenGL
- Full-screen post-process shader in 3D
- Scroll a shader texture for hours without the once-an-hour jump