AUAUGHAUHGUAGHAGUH fix the fix again

This commit is contained in:
Xonk 2023-06-11 00:28:00 -04:00
parent 73ec8fa92a
commit 0171b41502

View File

@ -333,7 +333,7 @@ vec4 renderClouds(
vec3 normView = normalize(dV_view); vec3 normView = normalize(dV_view);
// Assume fog color = sky gradient at long distance // Assume fog color = sky gradient at long distance
vec3 fogColor = skyFromTex(normView, colortex4)/150. * 5.0; vec3 fogColor = skyFromTex(normView, colortex4)/150. * 5.0;
float dist = min(cameraPosition.y+CumulusHeight,max(CumulusHeight,150))/(abs(normView.y)+0.001); float dist = max(cameraPosition.y+CumulusHeight,max(CumulusHeight,150))/(abs(normView.y)+0.001);
float fog = exp(dist / -5000.0 * (1.0+rainCloudwetness*8.)); float fog = exp(dist / -5000.0 * (1.0+rainCloudwetness*8.));
// if(IntersecTerrain) fog = 1.0; // if(IntersecTerrain) fog = 1.0;