1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

made proper skyboxes for dawn/evening and night

This commit is contained in:
Perttu Ahola 2011-04-29 17:53:07 +03:00
parent a5df5f8291
commit a73b10eb1c
8 changed files with 59 additions and 10 deletions

View file

@ -2001,7 +2001,8 @@ inline u32 time_to_daynight_ratio(u32 time_of_day)
s32 d = daylength;
s32 t = (((time_of_day)%24000)/(24000/d));
if(t < nightlength/2 || t >= d - nightlength/2)
return 300;
//return 300;
return 350;
else if(t >= d/2 - daytimelength/2 && t < d/2 + daytimelength/2)
return 1000;
else