Cull mode for my TilemapLayer-Node?

Godot Version

4.3

Question

I created an occlusion Layer for my TilemapLayer-Node.
The shadow works fine, but the barrel is no longer illuminated.

I read about a 2 Poinlight2D solution (one with shadow and one without),
but that sounds more like a work around.
There should be a cull-mode but i didn’t find that.

So… whats the solution? :melting_face:

This is a bug which is being worked on for a long time (it always gets postponed). The 2 pointlight-solution is the best we have for now i believe.

Here is the GitHub-Issue: CanvasItem light_mask is ignored by LightOccluder2D occluder_light_mask · Issue #64939 · godotengine/godot · GitHub

1 Like

Apparently last week someone managed to create a pr-request:

1 Like

After experimenting a bit, I believe the 2-light method provides the best results.
I think I’ll proceed with that.