diff --git a/examples/files.json b/examples/files.json index 391012641daa18..1948537f3331e8 100644 --- a/examples/files.json +++ b/examples/files.json @@ -337,6 +337,7 @@ "webgpu_lights_selective", "webgpu_lights_spotlight", "webgpu_lights_tiled", + "webgpu_lines_fat_raycasting", "webgpu_lines_fat_wireframe", "webgpu_lines_fat", "webgpu_loader_gltf", diff --git a/examples/screenshots/webgpu_lines_fat_raycasting.jpg b/examples/screenshots/webgpu_lines_fat_raycasting.jpg new file mode 100644 index 00000000000000..fc0c3ff23a3ae3 Binary files /dev/null and b/examples/screenshots/webgpu_lines_fat_raycasting.jpg differ diff --git a/examples/webgl_lines_fat.html b/examples/webgl_lines_fat.html index 64267185e65a25..3a6bbe15c82b32 100644 --- a/examples/webgl_lines_fat.html +++ b/examples/webgl_lines_fat.html @@ -18,7 +18,7 @@ "imports": { "three": "../build/three.module.js", "three/addons/": "./jsm/", - "stats-gl": "https://cdn.jsdelivr.net/npm/stats-gl@2.2.8/dist/main.js" + "stats-gl": "https://cdn.jsdelivr.net/npm/stats-gl@3.6.0/dist/main.js" } } @@ -138,7 +138,7 @@ window.addEventListener( 'resize', onWindowResize ); onWindowResize(); - stats = new Stats( { horizontal: false } ); + stats = new Stats( { horizontal: false, trackGPU: true } ); stats.init( renderer ); document.body.appendChild( stats.dom ); diff --git a/examples/webgl_lines_fat_raycasting.html b/examples/webgl_lines_fat_raycasting.html index 38f72acb5dd2c8..5ac47d01192d48 100644 --- a/examples/webgl_lines_fat_raycasting.html +++ b/examples/webgl_lines_fat_raycasting.html @@ -18,7 +18,7 @@ "imports": { "three": "../build/three.module.js", "three/addons/": "./jsm/", - "stats-gl": "https://cdn.jsdelivr.net/npm/stats-gl@2.2.8/dist/main.js" + "stats-gl": "https://cdn.jsdelivr.net/npm/stats-gl@3.6.0/dist/main.js" } } @@ -194,7 +194,7 @@ window.addEventListener( 'resize', onWindowResize ); onWindowResize(); - stats = new Stats( { horizontal: false } ); + stats = new Stats( { horizontal: false, trackGPU: true } ); stats.init( renderer ); document.body.appendChild( stats.dom ); diff --git a/examples/webgpu_lines_fat_raycasting.html b/examples/webgpu_lines_fat_raycasting.html new file mode 100644 index 00000000000000..1771e52140e298 --- /dev/null +++ b/examples/webgpu_lines_fat_raycasting.html @@ -0,0 +1,365 @@ + + + + three.js webgpu - lines - fat + + + + + + + +
+ +
three.js - fat lines raycasting
+ + + + + + + +