Aiko
January 18, 2026, 1:37am
1
Godot 4
I’m trying to get the tiles in a tilemaplayer to create a shadow instead of casting a shadow on themselves. I’m using a DirectionalLight2D for “darkness” and a PointLight2D for light.
like that: Like that, you can see the tiles but not behind them
Add an occlusion layer to the tile set, create occlusion polygons for tiles and enable shadow casting for the light.
Aiko
January 18, 2026, 2:06am
3
I already tried it (sorry for not giving that information). The problem is that the tiles are occluding themselves
Add another layer over it.
Aiko
January 18, 2026, 2:46am
5
I solved it the problem was that I confused light mask and item cull mask /: thanks for the reply
Hey, I have the same issue, could you maybe explain in more detail how to do this?