|
11 | 11 | <script type="importmap"> |
12 | 12 | { |
13 | 13 | "imports": { |
14 | | - "three": "https://cdn.jsdelivr.net/npm/three@0.169.0/build/three.webgpu.min.js", |
15 | | - "three/tsl": "https://cdn.jsdelivr.net/npm/three@0.169.0/build/three.webgpu.min.js", |
16 | | - "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.169.0/examples/jsm/", |
17 | | - "@gltf-transform/core": "https://esm.sh/@gltf-transform/core@4.0.2", |
18 | | - "@gltf-transform/extensions": "https://esm.sh/@gltf-transform/extensions@4.0.2", |
19 | | - "@gltf-transform/functions": "https://esm.sh/@gltf-transform/functions@4.0.2", |
| 14 | + "three": "https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.webgpu.min.js", |
| 15 | + "three/tsl": "https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.webgpu.min.js", |
| 16 | + "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/", |
| 17 | + "@gltf-transform/core": "https://esm.sh/@gltf-transform/core@4.1.0", |
| 18 | + "@gltf-transform/extensions": "https://esm.sh/@gltf-transform/extensions@4.1.0", |
| 19 | + "@gltf-transform/functions": "https://esm.sh/@gltf-transform/functions@4.1.0", |
20 | 20 | "meshoptimizer_encoder": "https://cdn.jsdelivr.net/npm/meshoptimizer@0.21.0/meshopt_encoder.module.min.js", |
21 | 21 | "meshoptimizer_simplifier": "https://cdn.jsdelivr.net/npm/meshoptimizer@0.21.0/meshopt_simplifier.module.min.js", |
22 | 22 | "ktx2-encoder": "https://esm.sh/ktx2-encoder@0.0.0-experimental.5" |
|
28 | 28 | <script src="https://cdn.jsdelivr.net/npm/jszip@3.10.1/dist/jszip.min.js" defer></script> |
29 | 29 |
|
30 | 30 | <!-- For encoding GLB exports with draco compression --> |
31 | | - <script src="https://cdn.jsdelivr.net/npm/three@0.169.0/examples/jsm/libs/draco/draco_encoder.min.js" defer></script> |
| 31 | + <script src="https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/libs/draco/draco_encoder.min.js" defer></script> |
32 | 32 |
|
33 | 33 | <script> |
34 | 34 | var THREE, strU8, uSync, manager, file_loader, obj_loader, mtl_loader; |
|
1591 | 1591 |
|
1592 | 1592 | <!-- mouse_wheel variable is used throughout as a trigger for rendering --> |
1593 | 1593 |
|
1594 | | - <title>OBJ+MTL WebGPU (r169)</title> |
| 1594 | + <title>OBJ+MTL WebGPU (r170)</title> |
1595 | 1595 | </head> |
1596 | 1596 | <body onload="reset_all(); document_ready();" onresize="resize();"> |
1597 | 1597 | <div id="fixed_menu" class="fixed-menu"> |
|
3148 | 3148 | if (ktx2_loader === undefined) { |
3149 | 3149 | const { KTX2Loader } = await import( "three/addons/loaders/KTX2Loader.min.js" ); |
3150 | 3150 | ktx2_loader = new KTX2Loader( manager ); |
3151 | | - ktx2_loader.setTranscoderPath( "https://cdn.jsdelivr.net/npm/three@0.169.0/examples/jsm/libs/basis/" ); |
| 3151 | + ktx2_loader.setTranscoderPath( "https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/libs/basis/" ); |
3152 | 3152 | manager.addHandler( /\.ktx2$/i, ktx2_loader ); |
3153 | 3153 | } |
3154 | 3154 |
|
|
3985 | 3985 | // Ref: https://threejs.org/examples/?q=bloom#webgpu_postprocessing_bloom_emissive |
3986 | 3986 |
|
3987 | 3987 | if (emissive_present === true) { |
3988 | | - const { pass, mrt, output, bloom, emissive } = await import( 'three/tsl' ); |
| 3988 | + const { pass, mrt, output, emissive } = await import( 'three/tsl' ); |
| 3989 | + const { bloom } = await import( 'three/addons/tsl/display/BloomNode.js' ); |
3989 | 3990 |
|
3990 | 3991 | let scenePass = pass( scene, camera ); |
3991 | 3992 | scenePass.setMRT( mrt( { output, emissive } ) ); |
|
0 commit comments