How to remove the shadows
Sometimes in 2D games, we need to completely remove the shadows from the scene. Here is a simple way to do that.
-
Set the camera angle to whatever is needed for the game.
-
Set the light angle to the same angle as the camera.
Example:
That's all!
But there might still be fuzzy shadow bleed.
For a perfect shadow removal
For a perfect shadow removal, we can move the camera very far from the scene. It is less convenient, but works perfectly.
For a top-down 2D game, we can set the camera Y value to a very high value.
Here is an example using camera 0,100,0:
(You should use your appropriate camera X and Z values. Set the Y value to a very high value.)
For 3D games, using this method is tricky and involves some math, so we don't talk it here.