@d5techs/3dgs-lib 1.4.54 → 1.4.56
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/3dgs-lib.cjs +64 -10
- package/dist/3dgs-lib.cjs.map +1 -1
- package/dist/3dgs-lib.js +64 -10
- package/dist/3dgs-lib.js.map +1 -1
- package/dist/App.d.ts +1 -0
- package/dist/core/SkyboxRenderer.d.ts +3 -1
- package/package.json +1 -1
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, flatter. */
|
|
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;
|