How to change light direction along object location/rotation
I made a simple planet material basing on a tutorial (complete newbie) with a light like this:
with direction defined by a constant vector, and now I realised it's not entirely what I need, as when I rotate the planet the light direction doesn't change, and as it goes around a star the day side is facing the wrong way, and to change that I need to modify the red and green values. The system moves as a rotating actor in the center with the mesh attached to it. Can I somehow fix this without rebuilding the whole thing entirely, as I am rather content with the final appearance of the planet?
Also I apologise if it's a wrong section, I'm not entirely sure if this post should be here.
Follow this question
Once you sign in you will be able to subscribe for any updates here