@d5techs/3dgs-lib 1.4.1 → 1.4.3

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.
@@ -50,6 +50,11 @@ export interface CompactSplatData {
50
50
  /** SH 系数(可选)Float32Array,每个 splat 45 个系数 */
51
51
  shCoeffs?: Float32Array;
52
52
  }
53
+ /**
54
+ * Y↔Z 轴交换时对 SH 系数的基函数变换(interleaved 格式)。
55
+ * 对 L1/L2/L3 三个波段分别施加正交变换矩阵,使 SH 视角相关颜色在坐标变换后保持正确。
56
+ */
57
+ export declare function transformSHCoeffsYZSwap(sh: Float32Array, base: number, perChannel: number): void;
53
58
  /**
54
59
  * 移动端优化的 PLY 加载器
55
60
  * 直接输出紧凑格式,避免创建大量中间对象
@@ -37,6 +37,8 @@ export interface HotspotInfo {
37
37
  label?: HotspotLabelConfig;
38
38
  /** 标签 DOM 元素(内部使用) */
39
39
  _labelElement?: HTMLDivElement;
40
+ /** billboard 模式下上一帧设定的第一个 mesh 世界位置(内部使用,用于检测 Gizmo 外部移动) */
41
+ _lastBillboardMeshPos?: Vec3Tuple;
40
42
  }
41
43
  /**
42
44
  * HotspotManager
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d5techs/3dgs-lib",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "可扩展的 WebGPU 3D 渲染引擎",
5
5
  "type": "module",
6
6
  "main": "./dist/3dgs-lib.cjs",