Skip to content

Commit

Permalink
Examples: Update external library dependencies (#27584)
Browse files Browse the repository at this point in the history
* Update external lib version

* Fix import
  • Loading branch information
gkjohnson authored and mrdoob committed Jan 22, 2024
1 parent 4f8101b commit 60a38e9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/webgl_geometry_csg.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"imports": {
"three": "../build/three.module.js",
"three/addons/": "./jsm/",
"three-mesh-bvh": "https://unpkg.com/three-mesh-bvh@0.6.0/build/index.module.js",
"three-bvh-csg": "https://unpkg.com/three-bvh-csg@0.0.7/build/index.module.js"
"three-mesh-bvh": "https://unpkg.com/three-mesh-bvh@0.7.0/build/index.module.js",
"three-bvh-csg": "https://unpkg.com/three-bvh-csg@0.0.16/build/index.module.js"
}
}
</script>
Expand Down
6 changes: 3 additions & 3 deletions examples/webgl_raycaster_bvh.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
"imports": {
"three": "../build/three.module.js",
"three/addons/": "./jsm/",
"three-mesh-bvh": "https://unpkg.com/three-mesh-bvh@0.6.0/build/index.module.js"
"three-mesh-bvh": "https://unpkg.com/three-mesh-bvh@0.7.0/build/index.module.js"
}
}
</script>

<script type="module">

import * as THREE from 'three';
import { computeBoundsTree, disposeBoundsTree, acceleratedRaycast, MeshBVHVisualizer } from 'three-mesh-bvh';
import { computeBoundsTree, disposeBoundsTree, acceleratedRaycast, MeshBVHHelper } from 'three-mesh-bvh';
import Stats from 'three/addons/libs/stats.module.js';
import { FBXLoader } from 'three/addons/loaders/FBXLoader.js';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
Expand Down Expand Up @@ -138,7 +138,7 @@
scene.add( mesh );
mesh.scale.setScalar( 0.0075 );

helper = new MeshBVHVisualizer( mesh );
helper = new MeshBVHHelper( mesh );
helper.color.set( 0xE91E63 );
scene.add( helper );

Expand Down
4 changes: 2 additions & 2 deletions examples/webgl_renderer_pathtracer.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"three": "../build/three.module.js",
"three/addons/": "./jsm/",
"three/examples/": "./",
"three-gpu-pathtracer": "https://unpkg.com/three-gpu-pathtracer@0.0.14/build/index.module.js",
"three-mesh-bvh": "https://unpkg.com/three-mesh-bvh@0.6.0/build/index.module.js"
"three-gpu-pathtracer": "https://unpkg.com/three-gpu-pathtracer@0.0.17/build/index.module.js",
"three-mesh-bvh": "https://unpkg.com/three-mesh-bvh@0.7.0/build/index.module.js"
}
}
</script>
Expand Down

0 comments on commit 60a38e9

Please sign in to comment.