I’m trying to make a topdown game where I have a tilemap for the wall and another for the floor. The 2D shadow caster is placed on the wall tilemap because the shadow has to be projected on the floor. If the light source is outside the wall tilemap everything works correctly.
But how can I make it work correctly by placing the light source inside the wall tilemap? My goal is to create light sources like windows or torches. But if I place the light source on the wall tilemap, the shadow stops being projected correctly. I imagine it’s because of the collider that “traps” the light inside the wall. But how could I make this work?

