add text label to wetness submenu, slightly improve full wet look

This commit is contained in:
Xonk
2026-01-03 20:04:28 -05:00
parent d52781e808
commit 4bc09aef1d
3 changed files with 9 additions and 1 deletions
+4 -1
View File
@@ -702,6 +702,7 @@ void applyPuddles(
puddles = clamp(halfWet - exp(-25.0 * puddles*puddles*puddles*puddles*puddles),0.0,1.0);
float wetnessStages = max(puddles, fullWet) * lightmap;
float wetnessDarkening = max(puddles, fullWet*0.5) * lightmap;
#endif
#if PUDDLE_MODE == 2
@@ -709,11 +710,13 @@ void applyPuddles(
puddles = clamp(halfWet - exp(-25.0 * puddles*puddles*puddles*puddles*puddles),0.0,1.0);
float wetnessStages = puddles * lightmap;
float wetnessDarkening = wetnessStages;
#endif
#if PUDDLE_MODE == 3
float puddles = 0.0;
float wetnessStages = fullWet * lightmap;
float wetnessDarkening = wetnessStages*0.5;
#endif
if(isWater) wetnessStages = 0.0;
@@ -721,7 +724,7 @@ void applyPuddles(
normals = mix(normals, flatNormals, puddles * lightmap * clamp(flatNormals.y,0.0,1.0));
roughness = mix(roughness, 1.0, wetnessStages);
if(f0 < 229.5/255.0 ) albedo = pow(albedo * (1.0 - 0.08*wetnessStages), vec3(1.0 + 0.7*wetnessStages));
if(f0 < 229.5/255.0 ) albedo = pow(albedo * (1.0 - 0.08*wetnessDarkening), vec3(1.0 + 0.7*wetnessDarkening));
//////////////// snow
+2
View File
@@ -655,6 +655,8 @@ screen.POM = Parallax Occlusion Mapping / POM
option.Adaptive_Step_length = Dynamic Quality
option.Horrible_slope_normals = Horrible Slope Normals
option.LABEL_0 = §a"Reflections on terrain" must be enabled for wetness to work
value.LABEL_0.0 = §f?§r
screen.WETNESS = Wetness / Puddles / Porosity
option.PUDDLE_MODE = Wetness During Rain
value.PUDDLE_MODE.0 = No Wetness
+3
View File
@@ -850,4 +850,7 @@
#ifdef Snowy_Winter
#endif
#ifdef VOXY_SCREENSPACE_REFLECTIONS
#endif
#ifdef LABEL_0
#define LABEL_0 0 // [0]
#endif