@d5techs/3dgs-lib 1.4.68 → 1.4.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/3dgs-lib.js CHANGED
@@ -2244,13 +2244,13 @@ fn dirToUv(d: vec3<f32>) -> vec2<f32> {
2244
2244
  // --- sky: sample HDR with original direction ---
2245
2245
  let skyUv = dirToUv(d);
2246
2246
 
2247
- // --- ground: ray→plane at Y=0, then map hit point to HDR direction ---
2247
+ // --- ground: ray→plane at Y=0, camera-centered (no world XZ offset) ---
2248
2248
  let dyClamped = min(d.y, -0.0001);
2249
2249
  let t = -cy / dyClamped;
2250
- let hitX = cx + t * d.x;
2251
- let hitZ = cz + t * d.z;
2250
+ let hitX = t * d.x;
2251
+ let hitZ = t * d.z;
2252
2252
 
2253
- // Direction from virtual capture point (0, captureH, 0) to ground hit point
2253
+ // Direction from virtual capture point to ground hit point
2254
2254
  let groundDir = normalize(vec3(hitX, -captureH, hitZ));
2255
2255
  let groundUv = dirToUv(groundDir);
2256
2256