Added option to change starting season/offset

This commit is contained in:
Sasha
2023-07-08 16:29:46 +01:00
parent 69b0be256e
commit db2929fc62
4 changed files with 8 additions and 2 deletions

View File

@ -48,7 +48,7 @@
int SeasonLength = Season_Length;
// loop the year. multiply the season length by the 4 seasons to create a years time.
float YearLoop = mod(worldDay, SeasonLength * 4);
float YearLoop = mod(worldDay + Start_Season * SeasonLength, SeasonLength * 4);
// the time schedule for each season
float SummerTime = clamp(YearLoop ,0, SeasonLength) / SeasonLength;