another seasons tweak

This commit is contained in:
Xonk 2024-05-10 15:28:56 -04:00
parent 23b44f78ca
commit 749b109b44
2 changed files with 9 additions and 2 deletions

View File

@ -46,6 +46,7 @@ vec4 toClipSpace3(vec3 viewSpacePosition) {
*/ */
#define SEASONS_VSH #define SEASONS_VSH
#define DH_SEASONS
#include "/lib/climate_settings.glsl" #include "/lib/climate_settings.glsl"
void main() { void main() {

View File

@ -27,7 +27,9 @@
vec3 WinterCol = vec3(Winter_R, Winter_G, Winter_B) ; vec3 WinterCol = vec3(Winter_R, Winter_G, Winter_B) ;
vec3 SpringCol = vec3(Spring_R, Spring_G, Spring_B); vec3 SpringCol = vec3(Spring_R, Spring_G, Spring_B);
// decide if you want to replace biome colors or tint them. // decide if you want to replace biome colors or tint them.
SummerCol *= glcolor; SummerCol *= glcolor;
AutumnCol *= glcolor; AutumnCol *= glcolor;
WinterCol *= glcolor; WinterCol *= glcolor;
@ -65,10 +67,14 @@
vec3 SpringToSummer = mix(WinterToSpring, SummerCol, SpringTime); vec3 SpringToSummer = mix(WinterToSpring, SummerCol, SpringTime);
// make it so that you only have access to parts of the texture that use the tint index // make it so that you only have access to parts of the texture that use the tint index
bool IsTintIndex = floor(dot(glcolor,vec3(0.5))) < 1.0 && isPlants; bool IsTintIndex = floor(dot(glcolor,vec3(0.5))) < 1.0;
// multiply final color by the final lerped color, because it contains all the other colors. // multiply final color by the final lerped color, because it contains all the other colors.
if(IsTintIndex) FinalColor = SpringToSummer; #ifdef DH_SEASONS
if(isPlants || isLeaves) FinalColor = SpringToSummer;
#else
if(IsTintIndex) FinalColor = SpringToSummer;
#endif
// #ifdef Snowy_Winter // #ifdef Snowy_Winter
// // this is to make snow only exist in winter // // this is to make snow only exist in winter