Going to get straight to the point.
I need help creating an animation of the sun traveling as it does during the day, preferably using SkyMaterial’s sun inclination & azimuth (if that’s how it works). If that’s not possible, simply animating a Vector3 would suffice. I’m not aware of how the actual mechanics work and the wikipedia page was a bit much, so if anybody can give me code for this, that’d be great.
My current configuration is as such:
const skybox = MeshBuilder.CreateBox("skyBox", { size: 300.0, updatable: false }, scene);
skybox.disableEdgesRendering()
const skyboxMaterial = new SkyMaterial("sky", scene);
skyboxMaterial.disableDepthWrite = true;
skyboxMaterial.backFaceCulling = false;
skyboxMaterial.luminance = 0.9
skyboxMaterial.rayleigh = 3
skyboxMaterial.turbidity = 3
skybox.material = skyboxMaterial;