Skip to content

Commit

Permalink
Updated screenshot of the webgpu_lights_ies_spotlight (mrdoob#26800)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag authored Sep 18, 2023
1 parent 75b9699 commit 1e673db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Binary file modified examples/screenshots/webgpu_lights_ies_spotlight.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions examples/webgpu_lights_ies_spotlight.html
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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' );

}

Expand Down
1 change: 0 additions & 1 deletion test/e2e/puppeteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 1e673db

Please sign in to comment.