I am trying to achieve a day/night lighting system similar to the game RimWorld. Short preview of what I want can be seen here: https://giphy.com/gifs/VgzcwtjueP7BrYSrXe
Instead of using Global Light 2D, for this sort of system, I assume I need to use Directional Lights or Point Lights.
How can I make it that no matter the map size, the perspective of the light will always remain similar? (looking like the sun rises at east and sets at west)
More importantly, how can I cast shadows for objects in my world? There is a shadow caster 2D component, but most of my shadow casting objects are tiles on a tilemap, which are super light in performance.
I've been able to add ShadowCaster2D to a GameObject, and then attach that GameObject to each individual tile (that needs to cast shadows, such as walls and trees), and it just seems to crush performance. Should I use the built-in ShadowCaster2D for this, or is there another way that is more performant?