@d5techs/3dgs-lib 1.4.40 → 1.4.41
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 +23 -8
- package/dist/3dgs-lib.cjs.map +1 -1
- package/dist/3dgs-lib.js +23 -8
- package/dist/3dgs-lib.js.map +1 -1
- package/dist/core/SkyboxRenderer.d.ts +9 -1
- package/package.json +1 -1
|
@@ -13,10 +13,18 @@ export declare class SkyboxRenderer {
|
|
|
13
13
|
private readonly scratchInv;
|
|
14
14
|
private cubeTexture;
|
|
15
15
|
private cubeBindGroup;
|
|
16
|
+
private uniformDirty;
|
|
16
17
|
constructor(device: GPUDevice, format: GPUTextureFormat, depthFormat: GPUTextureFormat);
|
|
17
18
|
get isActive(): boolean;
|
|
18
19
|
loadCubemap(faceUrls: [string, string, string, string, string, string]): Promise<void>;
|
|
19
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Must be called BEFORE beginFrame() to write uniform data outside the render pass.
|
|
22
|
+
*/
|
|
23
|
+
prepareFrame(viewMatrix: Float32Array, projectionMatrix: Float32Array): void;
|
|
24
|
+
/**
|
|
25
|
+
* Draw the skybox into the given render pass. Call prepareFrame() first.
|
|
26
|
+
*/
|
|
27
|
+
draw(pass: GPURenderPassEncoder): void;
|
|
20
28
|
clear(): void;
|
|
21
29
|
destroy(): void;
|
|
22
30
|
static invertMat4(out: Float32Array, e: Float32Array): boolean;
|