Skip to content

Commit

Permalink
WebGPURenderer: Prevent PMREM to break when missing textures (#875)
Browse files Browse the repository at this point in the history
* WebGPURenderer: Prevent PMREM to break when missing textures

* Add examples

* Update patch

* Delete examples
  • Loading branch information
Methuselah96 authored Mar 23, 2024
1 parent 79c6a89 commit 72caa96
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples-testing/changes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -14401,7 +14401,7 @@ index 3a13ab5..2850b1b 100644
}
});
diff --git a/examples-testing/examples/webgpu_parallax_uv.ts b/examples-testing/examples/webgpu_parallax_uv.ts
index 414dd0e..af4f4a6 100644
index 3021949..4ba3502 100644
--- a/examples-testing/examples/webgpu_parallax_uv.ts
+++ b/examples-testing/examples/webgpu_parallax_uv.ts
@@ -5,9 +5,9 @@ import WebGPURenderer from 'three/addons/renderers/webgpu/WebGPURenderer.js';
Expand Down
5 changes: 5 additions & 0 deletions types/three/examples/jsm/loaders/RGBMLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ export class RGBMLoader extends DataTextureLoader {
onError?: (event: ErrorEvent) => void,
): CubeTexture;

loadCubemapAsync(
urls: string[],
onProgress?: (event: ProgressEvent) => void,
): Promise<CubeTexture>;

parse(buffer: ArrayBuffer): RGBM;

setDataType(dataType: TextureDataType): this;
Expand Down

0 comments on commit 72caa96

Please sign in to comment.