Answer the question
In order to leave comments, you need to log in
How to make a short winter day?
There is a directional light and a script for it:
void Start () {
latitude = degrees + ((double)minutes / 60) + ((double)seconds / 3600);
inclination = 23.5 * Mathf.Sin((360 * (currentDay - 81)) / 365);
solarAzimut = latitude - 23.5 - inclination;
transform.rotation = Quaternion.Euler(360-(float)solarAzimut, 180, 0);
}
void Update () {
transform.Rotate(Vector3.up, DayLength * Time.fixedDeltaTime);
}
Answer the question
In order to leave comments, you need to log in
That's it, I understand.
It is necessary to make the movement of the sun along an elliptical trajectory
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question