mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Prevented the moon rising/setting too early/late
This commit is contained in:
parent
68502b22c1
commit
18ec6dbbec
@ -30,7 +30,7 @@ vec3 get_moon_dir(float time_of_day) {
|
||||
const float TIME_FACTOR = (PI * 2.0) / (3600.0 * 24.0);
|
||||
|
||||
float moon_angle_rad = time_of_day * TIME_FACTOR;
|
||||
return -vec3(sin(moon_angle_rad), 0.0, cos(moon_angle_rad));
|
||||
return normalize(-vec3(sin(moon_angle_rad), 0.0, cos(moon_angle_rad) - 0.5));
|
||||
}
|
||||
|
||||
const float PERSISTENT_AMBIANCE = 0.1;
|
||||
|
Loading…
Reference in New Issue
Block a user