Hello. I am playing around with a 2D Top Down game and I would like to cast different length shadows. For example the player should cast a smaller shadow than a wall. I tried to in paint to illustrate what I mean
In the image I have two types of walls. A tall wall and a half wall. What I would like to do is to give the illusion of that the half wall is indeed a half wall and to do that I would like to cast a shorter shadow than the tall wall.
I am not sure how to approach this problem.