@d5techs/3dgs-lib 1.4.52 → 1.4.54

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
@@ -185,6 +185,7 @@ export declare class App {
185
185
  posZ: string;
186
186
  negZ: string;
187
187
  }): Promise<void>;
188
+ setHdrBackground(url: string): Promise<void>;
188
189
  clearSkybox(): void;
189
190
  isSkyboxActive(): boolean;
190
191
  getTransformGizmo(): import(".").TransformGizmo;
@@ -1,16 +1,20 @@
1
1
  export declare class SkyboxRenderer {
2
2
  private readonly device;
3
- private readonly pipeline;
4
3
  private readonly uniformBuffer;
5
4
  private readonly sampler;
6
- private readonly bindGroupLayout;
7
5
  private readonly uniformData;
8
- private cubeTexture;
9
- private cubeBindGroup;
6
+ private cubePipeline;
7
+ private cubeBindGroupLayout;
8
+ private equirectPipeline;
9
+ private equirectBindGroupLayout;
10
+ private texture;
11
+ private bindGroup;
10
12
  private frameReady;
13
+ private mode;
11
14
  constructor(device: GPUDevice, format: GPUTextureFormat, depthFormat: GPUTextureFormat);
12
15
  get isActive(): boolean;
13
16
  loadCubemap(faceUrls: [string, string, string, string, string, string]): Promise<void>;
17
+ loadEquirectangular(url: string): Promise<void>;
14
18
  prepareFrame(viewMatrix: Float32Array, projectionMatrix: Float32Array): void;
15
19
  draw(pass: GPURenderPassEncoder): void;
16
20
  clear(): void;
package/dist/index.d.ts CHANGED
@@ -12,6 +12,8 @@ export { ViewportGizmo } from './core/gizmo/ViewportGizmo';
12
12
  export { BoundingBoxRenderer } from './core/BoundingBoxRenderer';
13
13
  export { SceneAidsRenderer } from './core/SceneAidsRenderer';
14
14
  export { SkyboxRenderer } from './core/SkyboxRenderer';
15
+ export { loadHdr } from './loaders/HdrLoader';
16
+ export type { HdrImage } from './loaders/HdrLoader';
15
17
  export { Mesh } from './mesh/Mesh';
16
18
  export { MeshRenderer } from './mesh/MeshRenderer';
17
19
  export { GLBLoader } from './loaders/GLBLoader';
@@ -0,0 +1,6 @@
1
+ export interface HdrImage {
2
+ width: number;
3
+ height: number;
4
+ data: Float32Array;
5
+ }
6
+ export declare function loadHdr(url: string): Promise<HdrImage>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d5techs/3dgs-lib",
3
- "version": "1.4.52",
3
+ "version": "1.4.54",
4
4
  "description": "可扩展的 WebGPU 3D 渲染引擎",
5
5
  "type": "module",
6
6
  "main": "./dist/3dgs-lib.cjs",