Skip to content

Commit 1e673db

Browse files
authored
Updated screenshot of the webgpu_lights_ies_spotlight (mrdoob#26800)
1 parent 75b9699 commit 1e673db

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed
Loading

examples/webgpu_lights_ies_spotlight.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
import * as THREE from 'three';
3232

3333
import WebGPU from 'three/addons/capabilities/WebGPU.js';
34+
import WebGL from 'three/addons/capabilities/WebGL.js';
35+
3436
import WebGPURenderer from 'three/addons/renderers/webgpu/WebGPURenderer.js';
3537

3638
import IESSpotLight from 'three/addons/lights/IESSpotLight.js';
@@ -44,11 +46,11 @@
4446

4547
async function init() {
4648

47-
if ( WebGPU.isAvailable() === false ) {
49+
if ( WebGPU.isAvailable() === false && WebGL.isWebGL2Available() === false ) {
4850

4951
document.body.appendChild( WebGPU.getErrorMessage() );
5052

51-
throw new Error( 'No WebGPU support' );
53+
throw new Error( 'No WebGPU or WebGL2 support' );
5254

5355
}
5456

test/e2e/puppeteer.js

-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ const exceptionList = [
118118
'webgpu_cubemap_dynamic',
119119
'webgpu_depth_texture',
120120
'webgpu_instance_mesh',
121-
'webgpu_lights_ies_spotlight',
122121
'webgpu_lines_fat',
123122
'webgpu_loader_gltf',
124123
'webgpu_loader_gltf_compressed',

0 commit comments

Comments
 (0)