@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.cjs CHANGED
@@ -2246,13 +2246,13 @@ fn dirToUv(d: vec3<f32>) -> vec2<f32> {
2246
2246
  // --- sky: sample HDR with original direction ---
2247
2247
  let skyUv = dirToUv(d);
2248
2248
 
2249
- // --- ground: ray→plane at Y=0, then map hit point to HDR direction ---
2249
+ // --- ground: ray→plane at Y=0, camera-centered (no world XZ offset) ---
2250
2250
  let dyClamped = min(d.y, -0.0001);
2251
2251
  let t = -cy / dyClamped;
2252
- let hitX = cx + t * d.x;
2253
- let hitZ = cz + t * d.z;
2252
+ let hitX = t * d.x;
2253
+ let hitZ = t * d.z;
2254
2254
 
2255
- // Direction from virtual capture point (0, captureH, 0) to ground hit point
2255
+ // Direction from virtual capture point to ground hit point
2256
2256
  let groundDir = normalize(vec3(hitX, -captureH, hitZ));
2257
2257
  let groundUv = dirToUv(groundDir);
2258
2258