mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2024-12-22 17:47:34 +08:00
fixed broken seasons (oops)
This commit is contained in:
parent
8189abba30
commit
1dce580891
@ -52,7 +52,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 & 0xFFFF + Start_Season * SeasonLength, SeasonLength * 4);
|
||||
float YearLoop = mod((worldDay & 0xFFFF) + Start_Season * SeasonLength, SeasonLength * 4);
|
||||
|
||||
// the time schedule for each season
|
||||
float SummerTime = clamp(YearLoop ,0, SeasonLength) / SeasonLength;
|
||||
@ -95,7 +95,7 @@
|
||||
int SeasonLength = 1;
|
||||
|
||||
// loop the year. multiply the season length by the 4 seasons to create a years time.
|
||||
float YearLoop = mod(worldDay & 0xFFFF + SeasonLength, SeasonLength * 4);
|
||||
float YearLoop = mod((worldDay & 0xFFFF) + SeasonLength, SeasonLength * 4);
|
||||
|
||||
// the time schedule for each season
|
||||
float SummerTime = clamp(YearLoop ,0, SeasonLength) / SeasonLength;
|
||||
|
Loading…
Reference in New Issue
Block a user