mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2024-12-23 01:59:39 +08:00
Added option to change starting season/offset
This commit is contained in:
parent
69b0be256e
commit
db2929fc62
@ -120,6 +120,11 @@ screen.Clouds = Cloud Settings
|
|||||||
screen.Climate = Climate Settings
|
screen.Climate = Climate Settings
|
||||||
option.Seasons = Seasonal Colors
|
option.Seasons = Seasonal Colors
|
||||||
option.Season_Length = Season Length (In Days)
|
option.Season_Length = Season Length (In Days)
|
||||||
|
option.Start_Season = Starting Season
|
||||||
|
value.Start_Season.0 = Summer (Default)
|
||||||
|
value.Start_Season.1 = Fall
|
||||||
|
value.Start_Season.2 = Winter
|
||||||
|
value.Start_Season.3 = Spring
|
||||||
option.Snowy_Winter = Snow During Winter
|
option.Snowy_Winter = Snow During Winter
|
||||||
screen.Summer_colors = Summer Colors
|
screen.Summer_colors = Summer Colors
|
||||||
option.Summer_R = Red Amount
|
option.Summer_R = Red Amount
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
int SeasonLength = Season_Length;
|
int SeasonLength = Season_Length;
|
||||||
|
|
||||||
// loop the year. multiply the season length by the 4 seasons to create a years time.
|
// 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
|
// the time schedule for each season
|
||||||
float SummerTime = clamp(YearLoop ,0, SeasonLength) / SeasonLength;
|
float SummerTime = clamp(YearLoop ,0, SeasonLength) / SeasonLength;
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
#define Seasons
|
#define Seasons
|
||||||
#define Season_Length 24 // [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91]
|
#define Season_Length 24 // [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91]
|
||||||
|
#define Start_Season 0 // [0 1 2 3]
|
||||||
#define Snowy_Winter
|
#define Snowy_Winter
|
||||||
|
|
||||||
#define Summer_R 1.0 // [0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0]
|
#define Summer_R 1.0 // [0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0]
|
||||||
|
@ -114,7 +114,7 @@ PhysicsMod_support [LabPBR]
|
|||||||
|
|
||||||
## SEASONS
|
## SEASONS
|
||||||
screen.Seasons.columns=1
|
screen.Seasons.columns=1
|
||||||
screen.Seasons = Seasons Season_Length Snowy_Winter <empty> [Summer_colors] [Fall_colors] [Winter_colors] [Spring_colors]
|
screen.Seasons = Seasons Season_Length Start_Season Snowy_Winter <empty> [Summer_colors] [Fall_colors] [Winter_colors] [Spring_colors]
|
||||||
|
|
||||||
screen.Summer_colors.columns=1
|
screen.Summer_colors.columns=1
|
||||||
screen.Summer_colors = Summer_R Summer_G Summer_B <empty> Summer_Leaf_R Summer_Leaf_G Summer_Leaf_B
|
screen.Summer_colors = Summer_R Summer_G Summer_B <empty> Summer_Leaf_R Summer_Leaf_G Summer_Leaf_B
|
||||||
|
Loading…
Reference in New Issue
Block a user