2
0
Эх сурвалжийг харах

Examples: Update external library dependencies (#27584)

* Update external lib version

* Fix import
Garrett Johnson 1 жил өмнө
parent
commit
a7b2f19aef

+ 2 - 2
examples/webgl_geometry_csg.html

@@ -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/[email protected].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/[email protected].16/build/index.module.js"
 				}
 			}
 		</script>

+ 3 - 3
examples/webgl_raycaster_bvh.html

@@ -29,7 +29,7 @@
 				"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>
@@ -37,7 +37,7 @@
 		<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';
@@ -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 );
 

+ 2 - 2
examples/webgl_renderer_pathtracer.html

@@ -44,8 +44,8 @@
 					"three": "../build/three.module.js",
 					"three/addons/": "./jsm/",
 					"three/examples/": "./",
-					"three-gpu-pathtracer": "https://unpkg.com/[email protected]4/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/[email protected]7/build/index.module.js",
+					"three-mesh-bvh": "https://unpkg.com/three-mesh-bvh@0.7.0/build/index.module.js"
 				}
 			}
 		</script>