@hology/webgpu-renderer 0.1.11 → 0.1.13
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/index.d.ts +8 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -793,7 +793,9 @@ declare class WebGpuRenderer {
|
|
|
793
793
|
readonly canvas: HTMLCanvasElement;
|
|
794
794
|
private readonly clearColor;
|
|
795
795
|
private readonly powerPreference;
|
|
796
|
-
private
|
|
796
|
+
private shadowMapSize;
|
|
797
|
+
private directionalShadowsEnabled;
|
|
798
|
+
private readonly spotShadowMapSize;
|
|
797
799
|
private readonly pointShadowMapSize;
|
|
798
800
|
private readonly fallbackMaterial;
|
|
799
801
|
private readonly materialResolver;
|
|
@@ -960,6 +962,7 @@ declare class WebGpuRenderer {
|
|
|
960
962
|
private readonly cameraFrustumPlanesScratch;
|
|
961
963
|
private readonly objectTraversalStackScratch;
|
|
962
964
|
private readonly isSphereVisibleScratch;
|
|
965
|
+
private readonly isSphereVisibleForCompilationScratch;
|
|
963
966
|
private readonly updateExtractedBoundsFromMatrixScratch;
|
|
964
967
|
private readonly transparentSortCameraPositionScratch;
|
|
965
968
|
private readonly transparentSortCameraForwardScratch;
|
|
@@ -992,6 +995,9 @@ declare class WebGpuRenderer {
|
|
|
992
995
|
readonly x: number;
|
|
993
996
|
readonly y: number;
|
|
994
997
|
}[], lights?: readonly DirectionalLight[]): void;
|
|
998
|
+
/** Sets the base resolution used by directional shadow-map array layers. */
|
|
999
|
+
setDirectionalShadowMapSize(size: number): void;
|
|
1000
|
+
setDirectionalShadowsEnabled(enabled: boolean): void;
|
|
995
1001
|
setRenderGraphProfilingEnabled(enabled: boolean): void;
|
|
996
1002
|
getRenderGraphProfilingEnabled(): boolean;
|
|
997
1003
|
getTimestampQuerySupported(): boolean;
|
|
@@ -1055,6 +1061,7 @@ declare class WebGpuRenderer {
|
|
|
1055
1061
|
destroy(): void;
|
|
1056
1062
|
private createStaticPipelines;
|
|
1057
1063
|
private recreateShadowResources;
|
|
1064
|
+
private recreateDirectionalShadowResources;
|
|
1058
1065
|
private ensureShadowTextureSizes;
|
|
1059
1066
|
private ensureColorTarget;
|
|
1060
1067
|
private ensureMsaaColorTarget;
|