diff --git a/vendor/clouds3d.js b/vendor/clouds3d.js index d4f2de0..2ad500b 100644 --- a/vendor/clouds3d.js +++ b/vendor/clouds3d.js @@ -205,8 +205,8 @@ var FRAG_SRC = [ 'vec2 gUv = vec2(hitPoint.x, hitPoint.z);', 'gUv = (gUv - uGroundCenter) / uGroundSize + 0.5;', 'vec3 groundCol = texture2D(uGround, gUv).rgb;', - 'float fogAmount = clamp(tGround / 30.0, 0.0, 1.0);', - 'groundCol = mix(groundCol, uBg, fogAmount * 0.75);', + 'float fogAmount = clamp(tGround / 12.0, 0.0, 1.0);', + 'groundCol = mix(groundCol, uBg, fogAmount);', // Ground mask: full ground when looking down, none when up. 'float gmask = (tGround > 0.0) ? smoothstep(0.0, -0.30, rd.y) : 0.0;', 'col = mix(col, groundCol, gmask);', @@ -269,7 +269,7 @@ function init(canvas) { var GROUND_TILE_URL = 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/'; var GROUND_TILE_Z = 11; var GROUND_TILE_SIZE = 256; -var GROUND_MOSAIC_SIZE = 9; // 9x9 tiles around the camera +var GROUND_MOSAIC_SIZE = 16; // 16x16 tiles around the camera var GROUND_BUFFER_TILES = 2; // refetch when this close to edge // Passau tile at zoom 11 var GROUND_BASE_X = 1102;