diff --git a/examples/screenshots/webgpu_lights_ies_spotlight.jpg b/examples/screenshots/webgpu_lights_ies_spotlight.jpg index 001fe203e0b94e..d645a62b822167 100644 Binary files a/examples/screenshots/webgpu_lights_ies_spotlight.jpg and b/examples/screenshots/webgpu_lights_ies_spotlight.jpg differ diff --git a/examples/webgpu_lights_ies_spotlight.html b/examples/webgpu_lights_ies_spotlight.html index eccac90d5a52bb..b11715e63b4603 100644 --- a/examples/webgpu_lights_ies_spotlight.html +++ b/examples/webgpu_lights_ies_spotlight.html @@ -31,6 +31,8 @@ import * as THREE from 'three'; import WebGPU from 'three/addons/capabilities/WebGPU.js'; + import WebGL from 'three/addons/capabilities/WebGL.js'; + import WebGPURenderer from 'three/addons/renderers/webgpu/WebGPURenderer.js'; import IESSpotLight from 'three/addons/lights/IESSpotLight.js'; @@ -44,11 +46,11 @@ async function init() { - if ( WebGPU.isAvailable() === false ) { + if ( WebGPU.isAvailable() === false && WebGL.isWebGL2Available() === false ) { document.body.appendChild( WebGPU.getErrorMessage() ); - throw new Error( 'No WebGPU support' ); + throw new Error( 'No WebGPU or WebGL2 support' ); } diff --git a/test/e2e/puppeteer.js b/test/e2e/puppeteer.js index 429ca8388eb83a..ac567d010e5ad9 100644 --- a/test/e2e/puppeteer.js +++ b/test/e2e/puppeteer.js @@ -118,7 +118,6 @@ const exceptionList = [ 'webgpu_cubemap_dynamic', 'webgpu_depth_texture', 'webgpu_instance_mesh', - 'webgpu_lights_ies_spotlight', 'webgpu_lines_fat', 'webgpu_loader_gltf', 'webgpu_loader_gltf_compressed',