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.
I already tried it (sorry for not giving that information). The problem is that the tiles are occluding themselves
Add another layer over it.
I solved it the problem was that I confused light mask and item cull mask /: thanks for the reply