Thin floor fog and widen gaps between drifting patches

This commit is contained in:
JariKo
2026-10-28 16:09:29 +02:00
parent fc3ebd1837
commit d61e1fa1a7
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
shader_type fog;
uniform float density = 0.5525;
uniform float density = 0.38675;
uniform float surface_height = 0.45;
uniform vec3 player_position = vec3(0.0);
uniform float fog_time = 0.0;
@@ -22,7 +22,7 @@ void fog() {
float billow = noise(p * 0.9 + vec2(fog_time * 0.12, -fog_time * 0.08));
float detail = noise(p * 2.1 + vec2(-fog_time * 0.09, fog_time * 0.15));
float patches = noise(p * 0.32 + vec2(fog_time * 0.025, -fog_time * 0.018));
float coverage = mix(0.08, 1.8, smoothstep(0.32, 0.68, patches));
float coverage = mix(0.02, 1.5, smoothstep(0.42, 0.76, patches));
float top = surface_height + (billow - 0.5) * 0.22;
float layer = 1.0 - smoothstep(top - 0.23, top + 0.10, WORLD_POSITION.y);
vec2 edge_distance = (vec2(0.5) - abs(UVW.xz - vec2(0.5))) * SIZE.xz;