Hi, i am getting a weird behavior that i am not capable to solve.
I am working on a space game, similar in size to Outer wilds, but i am having troubles with ligths.
I am handling illumination using a point light with a huge radius in the center of the sistem, where the sun is located, to illuminate every planet, and then when i land on a planet i hide the Point light and spawn a directional light along with a sky atmosphere, everything works fine except for one thing.
As soon as i tried to make the planet spinning and making the directional light cast dinamic shadows, if i am not facing the light, disappear.
What can be the cause of this? The shadows are working fine, except for this problem i described above.
Let me know if you need some additional details, i am a beginner so every suggestion is appreciated!