Make seasonal snow only in winter - early spring, make rain less when not under a cloud

This commit is contained in:
Xonk
2023-06-15 17:25:01 -04:00
parent fa9608c859
commit 35ee91b5d0
9 changed files with 105 additions and 54 deletions

View File

@ -276,7 +276,10 @@ void main() {
color += vl.rgb;
float rainDrops = clamp(texture2D(colortex9,texcoord).a, 0.0,1.0); // bloomy rain effect
if(rainDrops > 0.0) vl.a *= clamp(exp2(-rainDrops*5),0.,1.); // bloomy rain effect
if(rainDrops > 0.0) vl.a *= clamp(1.0 - rainDrops ,0.,1.); // bloomy rain effect
gl_FragData[0].r = vl.a;
/// lava.
@ -302,7 +305,6 @@ void main() {
if(texcoord.x < 0.45 && luma(thingy) > 0.0 ) color.rgb = thingy;
#endif
gl_FragData[1].rgb = clamp(color.rgb,0.0,68000.0);
// gl_FragData[1].rgb = vec3(tangentNormals,0.0);