diff --git a/vendor/clouds3d.js b/vendor/clouds3d.js index 12700dd..6c9e0a4 100644 --- a/vendor/clouds3d.js +++ b/vendor/clouds3d.js @@ -195,12 +195,7 @@ var FRAG_SRC = [ // remain visible against a deep but not void-black sky. 'float skyDarkness = nightFactor * 0.55;', 'col = mix(col, col * (1.0 - skyDarkness), 1.0 - cloud);', - '// Horizon: cast the ray onto the ground plane (y=0) and sample - // the satellite image at that world (x,z) coordinate. As - // the camera drifts forward over time the texture scrolls - // past, giving the illusion of flying over real terrain. - // Distant ground fades toward sky colour (atmospheric - // perspective). + '// Horizon: cast the ray onto the ground plane (y=0) and sample the satellite image at that world (x,z) coordinate. As the camera drifts forward over time the texture scrolls past, giving the illusion of flying over real terrain. Distant ground fades toward sky colour (atmospheric perspective).', 'float tGround = (ro.y > 0.0 && rd.y < -0.001) ? -ro.y / rd.y : -1.0;', 'vec3 hitPoint = ro + rd * tGround;', 'vec2 gUv = vec2(hitPoint.x, hitPoint.z) * 0.04 + 0.5;',