@hology/webgpu-renderer 0.1.12 → 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 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 readonly shadowMapSize;
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;
@@ -993,6 +995,9 @@ declare class WebGpuRenderer {
993
995
  readonly x: number;
994
996
  readonly y: number;
995
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;
996
1001
  setRenderGraphProfilingEnabled(enabled: boolean): void;
997
1002
  getRenderGraphProfilingEnabled(): boolean;
998
1003
  getTimestampQuerySupported(): boolean;
@@ -1056,6 +1061,7 @@ declare class WebGpuRenderer {
1056
1061
  destroy(): void;
1057
1062
  private createStaticPipelines;
1058
1063
  private recreateShadowResources;
1064
+ private recreateDirectionalShadowResources;
1059
1065
  private ensureShadowTextureSizes;
1060
1066
  private ensureColorTarget;
1061
1067
  private ensureMsaaColorTarget;