Procházet zdrojové kódy

Updated screenshot of the `webgpu_lights_ies_spotlight` (#26800)

sunag před 1 rokem
rodič
revize
1e673dbaa2

binární
examples/screenshots/webgpu_lights_ies_spotlight.jpg


+ 4 - 2
examples/webgpu_lights_ies_spotlight.html

@@ -31,6 +31,8 @@
 			import * as THREE from 'three';
 			import * as THREE from 'three';
 
 
 			import WebGPU from 'three/addons/capabilities/WebGPU.js';
 			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 WebGPURenderer from 'three/addons/renderers/webgpu/WebGPURenderer.js';
 
 
 			import IESSpotLight from 'three/addons/lights/IESSpotLight.js';
 			import IESSpotLight from 'three/addons/lights/IESSpotLight.js';
@@ -44,11 +46,11 @@
 
 
 			async function init() {
 			async function init() {
 
 
-				if ( WebGPU.isAvailable() === false ) {
+				if ( WebGPU.isAvailable() === false && WebGL.isWebGL2Available() === false ) {
 
 
 					document.body.appendChild( WebGPU.getErrorMessage() );
 					document.body.appendChild( WebGPU.getErrorMessage() );
 
 
-					throw new Error( 'No WebGPU support' );
+					throw new Error( 'No WebGPU or WebGL2 support' );
 
 
 				}
 				}
 
 

+ 0 - 1
test/e2e/puppeteer.js

@@ -118,7 +118,6 @@ const exceptionList = [
 	'webgpu_cubemap_dynamic',
 	'webgpu_cubemap_dynamic',
 	'webgpu_depth_texture',
 	'webgpu_depth_texture',
 	'webgpu_instance_mesh',
 	'webgpu_instance_mesh',
-	'webgpu_lights_ies_spotlight',
 	'webgpu_lines_fat',
 	'webgpu_lines_fat',
 	'webgpu_loader_gltf',
 	'webgpu_loader_gltf',
 	'webgpu_loader_gltf_compressed',
 	'webgpu_loader_gltf_compressed',