How would you do ?

Hi all,

I’m quite new to unity. I have been using it for few months.
I’m creating a space game. A procedural solar system is created each new game. It includes a sun at its center, and randomly generated planets and moons (see below).

On Scene screen you can visualise the generated system (in green is the planets trajectories).
On Game screen you can see the closer planet as seen from the sun.

Keep in mind that the distance are huge between objects. (Player is always at 0, 0, 0 and everything moves arround him.)

Now, I really don’t know how to manage the light. Idealy, I would like a point light (like a real life sun) that would lighten the scene from where it is and its light would decrease as you get away from it. But I also want shadows to work. For example, a moon shadow must appear on the planet when it goes between sun and planet.

So my question is : How would you do ?

Thank you !

Hi,

did you find a solution? I’ve the same problem. Point light shadows working in a close distance but if I move the point light far away shadows disappear. It is really annoying and I can’t find a good solution.