@d5techs/3dgs-lib 1.4.53 → 1.4.55

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/App.d.ts CHANGED
@@ -186,6 +186,7 @@ export declare class App {
186
186
  negZ: string;
187
187
  }): Promise<void>;
188
188
  setHdrBackground(url: string): Promise<void>;
189
+ setHdrGroundRadius(radius: number): void;
189
190
  clearSkybox(): void;
190
191
  isSkyboxActive(): boolean;
191
192
  getTransformGizmo(): import(".").TransformGizmo;
@@ -11,11 +11,13 @@ export declare class SkyboxRenderer {
11
11
  private bindGroup;
12
12
  private frameReady;
13
13
  private mode;
14
+ /** Ground projection sphere radius (world units). Larger = ground extends further. */
15
+ groundRadius: number;
14
16
  constructor(device: GPUDevice, format: GPUTextureFormat, depthFormat: GPUTextureFormat);
15
17
  get isActive(): boolean;
16
18
  loadCubemap(faceUrls: [string, string, string, string, string, string]): Promise<void>;
17
19
  loadEquirectangular(url: string): Promise<void>;
18
- prepareFrame(viewMatrix: Float32Array, projectionMatrix: Float32Array): void;
20
+ prepareFrame(viewMatrix: Float32Array, projectionMatrix: Float32Array, cameraPosition?: [number, number, number]): void;
19
21
  draw(pass: GPURenderPassEncoder): void;
20
22
  clear(): void;
21
23
  destroy(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d5techs/3dgs-lib",
3
- "version": "1.4.53",
3
+ "version": "1.4.55",
4
4
  "description": "可扩展的 WebGPU 3D 渲染引擎",
5
5
  "type": "module",
6
6
  "main": "./dist/3dgs-lib.cjs",