Hello, I am making a platform game with a tilemap and a shadow light. The tilemap is a shadow caster, but as you can see from the attached screenshots, the tilemap only casts shadows correctly sometimes. In the second screenshot I moved my character slightly up, and the shadows were casted correctly, obscuring what is in the terrain. But, if I move back down, as you can see in the first screenshot, I can see through the tilemap. This happens often in many places.
All shadow heights and line heights are zero, and I've tried experimenting with changing them and changing Z orders and layer positions and everything, but can't seem to find a solution. Any help would be greatly appreciated.
Thanks in advance for the help!