Quickstart Tutorial:
- Add the following file (solartime.gd) to your Godot project.
- Create a new Node3D, but don't attach the script to it yet. Name this Node3D "solar center" or something similar, and ensure it's in the center of your level.
- Add a DirectionalLight3D as a child to the Node3D. This will represent the sun.
- Move the DirectionalLight3D to a suitable height on the Y-axis, and point it downwards. Right now, it should be facing downwards and directly overhead.
- Now, attatch solartime.gd to the original Node3D you created. Configure the settings for latitude/longitude/season/etc. as you wish.
- Click "Run" and you should be good to go!
Note: This is intended only for adjusting the lighting (via a DirectionalLight3D or two). This should not be used to display a skybox unless you know what you are doing. If you're new and looking to make the sky look pretty now you have a working sun, look up "sky shaders" for