@d5techs/3dgs-lib 1.4.49 → 1.4.50

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.
@@ -12,12 +12,7 @@ export declare class SkyboxRenderer {
12
12
  constructor(device: GPUDevice, format: GPUTextureFormat, depthFormat: GPUTextureFormat);
13
13
  get isActive(): boolean;
14
14
  loadCubemap(faceUrls: [string, string, string, string, string, string]): Promise<void>;
15
- /**
16
- * Write uniforms BEFORE beginFrame().
17
- * pitchOffset: radians to rotate sampling direction around world X axis,
18
- * used to align skybox horizon with model ground plane.
19
- */
20
- prepareFrame(viewMatrix: Float32Array, projectionMatrix: Float32Array, pitchOffset?: number): void;
15
+ prepareFrame(viewMatrix: Float32Array, projectionMatrix: Float32Array, cameraPosition?: [number, number, number]): void;
21
16
  draw(pass: GPURenderPassEncoder): void;
22
17
  clear(): void;
23
18
  destroy(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d5techs/3dgs-lib",
3
- "version": "1.4.49",
3
+ "version": "1.4.50",
4
4
  "description": "可扩展的 WebGPU 3D 渲染引擎",
5
5
  "type": "module",
6
6
  "main": "./dist/3dgs-lib.cjs",