I want to create shadows between moons and planets. This is not as easy as it sounds because the local star is not a point of light except for planets that are VERY far from it. Planet systems like Earth-Moon are close enough to the Sun that the eclipse area of the moon isn't exactly the size of the moon -- it's smaller. Likewise, Mercury was directly between the Sun and Earth, it has no eclipse area on Earth because the Sun isn't just a point of light, it has a huge surface that is generating light......
So the question: How do I make a shader to accomplish this? Conceptually, how is this done?