diff --git a/vendor/clouds3d.js b/vendor/clouds3d.js index 93aca8c..16f08f4 100644 --- a/vendor/clouds3d.js +++ b/vendor/clouds3d.js @@ -204,7 +204,7 @@ var FRAG_SRC = [ 'vec3 hitPoint = ro + rd * tGround;', // Project hitPoint onto the corridor rotated axes (travel ~35 deg). Then divide by per-axis extent so the corridor maps to UV 0..1. The mosaic canvas is drawn in this rotated frame, so the satellite image comes out oriented correctly. 'vec2 offset = vec2(hitPoint.x, hitPoint.z) - uGroundCenter;', - 'vec2 rotated = vec2(offset.x * 0.82 + offset.y * 0.57, -offset.x * 0.57 + offset.y * 0.82);', + 'vec2 rotated = vec2(offset.x * 0.0 + offset.y * 1.0, -offset.x * 1.0 + offset.y * 0.0);', 'vec2 gUv = rotated / uGroundSize + 0.5;', 'vec3 groundCol = texture2D(uGround, gUv).rgb;', 'float fogAmount = clamp(tGround / 14.0, 0.0, 1.0);',