@d5techs/3dgs-lib 1.4.40 → 1.4.42

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.
@@ -1,24 +1,22 @@
1
1
  export declare class SkyboxRenderer {
2
2
  private readonly device;
3
- private readonly format;
4
- private readonly depthFormat;
5
- private readonly shaderModule;
6
- private readonly bindGroupLayout;
7
- private readonly pipelineLayout;
8
3
  private readonly pipeline;
9
4
  private readonly uniformBuffer;
10
5
  private readonly sampler;
11
- private readonly scratchViewNoTrans;
12
- private readonly scratchVp;
13
- private readonly scratchInv;
6
+ private readonly bindGroupLayout;
7
+ private readonly uniformData;
14
8
  private cubeTexture;
15
9
  private cubeBindGroup;
10
+ private frameReady;
16
11
  constructor(device: GPUDevice, format: GPUTextureFormat, depthFormat: GPUTextureFormat);
17
12
  get isActive(): boolean;
18
13
  loadCubemap(faceUrls: [string, string, string, string, string, string]): Promise<void>;
19
- render(pass: GPURenderPassEncoder, viewMatrix: Float32Array, projectionMatrix: Float32Array): void;
14
+ /**
15
+ * Write uniforms BEFORE beginFrame(). No matrix inversion needed —
16
+ * we extract the view rotation transpose and inverse projection scalars directly.
17
+ */
18
+ prepareFrame(viewMatrix: Float32Array, projectionMatrix: Float32Array): void;
19
+ draw(pass: GPURenderPassEncoder): void;
20
20
  clear(): void;
21
21
  destroy(): void;
22
- static invertMat4(out: Float32Array, e: Float32Array): boolean;
23
- private static multiplyMat4;
24
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d5techs/3dgs-lib",
3
- "version": "1.4.40",
3
+ "version": "1.4.42",
4
4
  "description": "可扩展的 WebGPU 3D 渲染引擎",
5
5
  "type": "module",
6
6
  "main": "./dist/3dgs-lib.cjs",