I’ve already done something similar to aligning a sphere as a sun to the directional light’s direction, I’ll apply your material solution and see how it looks, thank you.
This is in essence an illusion of omnidirectional light right? I ask this because if the player were to be placed on mars for example the lighting would not function as it does on the silver platform/terrain you’ve demonstrated, correct?
Would maybe a solution like collision triggers setting the directional light of the sun to update to the direction of the planet triggered on player collision work?
I have gravity fields implemented that use a collision sphere to update player gravity to a select planet which I could use to update the sun maybe. But lighting follows the player when in the middle of space after exiting a collision sphere. Cause if the sun always follows the player it could look weird when on a planet and day and night cycles would be strange too.