diff --git a/vendor/clouds3d.js b/vendor/clouds3d.js index 2860b80..89b75cc 100644 --- a/vendor/clouds3d.js +++ b/vendor/clouds3d.js @@ -383,7 +383,7 @@ var FRAG_SRC = [ // skyT floor at 0.5: at and below the horizon the sky keeps // the exact horizon colour - the same value the terrain's // distance fog saturates to, so no seam at the silhouette. - 'float skyT = clamp(rd.y * 0.7 + 0.5, 0.5, 1.0);', + 'float skyT = clamp(rd.y * 0.55 + 0.5, 0.5, 1.0);', 'vec3 col = mix(uBg, uSky, skyT);', 'if (uPhysicalSkyOn > 0.5) {', 'float cosT = dot(rd, uSunDir);', @@ -492,7 +492,7 @@ var FRAG_SRC = [ // the ground has a different colour than the sky next to it // and reads as a hard edge. 'if (uPhysical > 0.5) {', - 'float lowBand = 1.0 - smoothstep(-0.03, 0.20, rd.y);', + 'float lowBand = 1.0 - smoothstep(-0.08, 0.35, rd.y);', 'float cosTA = dot(rd, uSunDir);', 'float phaseA = 0.5 + 0.5 * cosTA * cosTA;', 'col = mix(col, uAirColor * phaseA * 1.25, lowBand * 0.92);',