@d5techs/3dgs-lib 1.4.38 → 1.4.39
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 +256 -0
- package/dist/3dgs-lib.cjs.map +1 -1
- package/dist/3dgs-lib.js +256 -0
- package/dist/3dgs-lib.js.map +1 -1
- package/dist/App.d.ts +11 -0
- package/dist/core/SkyboxRenderer.d.ts +24 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/App.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export declare class App {
|
|
|
70
70
|
private gizmoManager;
|
|
71
71
|
private hotspotManager;
|
|
72
72
|
private sceneAids;
|
|
73
|
+
private skyboxRenderer;
|
|
73
74
|
private isRunning;
|
|
74
75
|
private animationId;
|
|
75
76
|
private useMobileRenderer;
|
|
@@ -176,6 +177,16 @@ export declare class App {
|
|
|
176
177
|
* 调用方可在相机初始化完毕后主动调用以改善缩放手感。
|
|
177
178
|
*/
|
|
178
179
|
snapTargetToSurface(): boolean;
|
|
180
|
+
setSkybox(faceUrls: {
|
|
181
|
+
posX: string;
|
|
182
|
+
negX: string;
|
|
183
|
+
posY: string;
|
|
184
|
+
negY: string;
|
|
185
|
+
posZ: string;
|
|
186
|
+
negZ: string;
|
|
187
|
+
}): Promise<void>;
|
|
188
|
+
clearSkybox(): void;
|
|
189
|
+
isSkyboxActive(): boolean;
|
|
179
190
|
getTransformGizmo(): import(".").TransformGizmo;
|
|
180
191
|
getViewportGizmo(): import(".").ViewportGizmo;
|
|
181
192
|
setViewportGizmoVisible(visible: boolean): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class SkyboxRenderer {
|
|
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
|
+
private readonly pipeline;
|
|
9
|
+
private readonly uniformBuffer;
|
|
10
|
+
private readonly sampler;
|
|
11
|
+
private readonly scratchViewNoTrans;
|
|
12
|
+
private readonly scratchVp;
|
|
13
|
+
private readonly scratchInv;
|
|
14
|
+
private cubeTexture;
|
|
15
|
+
private cubeBindGroup;
|
|
16
|
+
constructor(device: GPUDevice, format: GPUTextureFormat, depthFormat: GPUTextureFormat);
|
|
17
|
+
get isActive(): boolean;
|
|
18
|
+
loadCubemap(faceUrls: [string, string, string, string, string, string]): Promise<void>;
|
|
19
|
+
render(pass: GPURenderPassEncoder, viewMatrix: Float32Array, projectionMatrix: Float32Array): void;
|
|
20
|
+
clear(): void;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
static invertMat4(out: Float32Array, e: Float32Array): boolean;
|
|
23
|
+
private static multiplyMat4;
|
|
24
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { OrbitControls } from './core/OrbitControls';
|
|
|
11
11
|
export { ViewportGizmo } from './core/gizmo/ViewportGizmo';
|
|
12
12
|
export { BoundingBoxRenderer } from './core/BoundingBoxRenderer';
|
|
13
13
|
export { SceneAidsRenderer } from './core/SceneAidsRenderer';
|
|
14
|
+
export { SkyboxRenderer } from './core/SkyboxRenderer';
|
|
14
15
|
export { Mesh } from './mesh/Mesh';
|
|
15
16
|
export { MeshRenderer } from './mesh/MeshRenderer';
|
|
16
17
|
export { GLBLoader } from './loaders/GLBLoader';
|