mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2024-12-22 09:38:52 +08:00
another seasons tweak
This commit is contained in:
parent
23b44f78ca
commit
749b109b44
@ -46,6 +46,7 @@ vec4 toClipSpace3(vec3 viewSpacePosition) {
|
||||
*/
|
||||
|
||||
#define SEASONS_VSH
|
||||
#define DH_SEASONS
|
||||
#include "/lib/climate_settings.glsl"
|
||||
|
||||
void main() {
|
||||
|
@ -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.
|
||||
if(IsTintIndex) FinalColor = SpringToSummer;
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user