I have created a 3D environment in three.js and in the middle of the environment is the 3D cubic object. And there is a ambient light and a directional light to simulate the sun light
var k = 3;
var ambient_light = new THREE.AmbientLight(0x111111);
var sun_light = new THREE.DirectionalLight( 0xfff1e0, 1.5);
sun_light.position.set(1000 * k, 100 * k, -200 * k);
so now I want to make the environment light more dynamic like a whole day and night, with the sun rise from the east and go down to the west, and also simulate a bit at the dark night. To simulate that, I suppose when it comes to the night, most time it is about setting the intensity to be lower. and when it comes to the day, the directional Light need to change the position from time to time, but now I just don't know how would I set the position in different times of the day