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 DH_SEASONS
#include "/lib/climate_settings.glsl"
void main() {

View File

@ -27,7 +27,9 @@
vec3 WinterCol = vec3(Winter_R, Winter_G, Winter_B) ;
vec3 SpringCol = vec3(Spring_R, Spring_G, Spring_B);
// decide if you want to replace biome colors or tint them.
SummerCol *= glcolor;
AutumnCol *= glcolor;
WinterCol *= glcolor;
@ -65,10 +67,14 @@
vec3 SpringToSummer = mix(WinterToSpring, SummerCol, SpringTime);
// 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.
#ifdef DH_SEASONS
if(isPlants || isLeaves) FinalColor = SpringToSummer;
#else
if(IsTintIndex) FinalColor = SpringToSummer;
#endif
// #ifdef Snowy_Winter
// // this is to make snow only exist in winter