Skip to content

Commit

Permalink
Merge pull request #809 from cx20/update_threejs_to_latest
Browse files Browse the repository at this point in the history
Update three.js r170 to r171
  • Loading branch information
cx20 authored Nov 29, 2024
2 parents 48783ab + 6773953 commit 1cac024
Show file tree
Hide file tree
Showing 47 changed files with 118,821 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/threejs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<script type="importmap">
{
"imports": {
"three": "../../libs/three.js/r170/build/three.module.js",
"three/addons/": "../../libs/three.js/r170/examples/jsm/"
"three": "../../libs/three.js/r171/build/three.module.js",
"three/addons/": "../../libs/three.js/r171/examples/jsm/"
}
}
</script>
Expand Down
4 changes: 2 additions & 2 deletions examples/threejs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ function init() {
const loader = new GLTFLoader(manager);
loader.setCrossOrigin( 'anonymous' );

const dracoLoader = new DRACOLoader().setDecoderPath( '../../libs/three.js/r170/examples/jsm/libs/draco/gltf/' );
const dracoLoader = new DRACOLoader().setDecoderPath( '../../libs/three.js/r171/examples/jsm/libs/draco/gltf/' );
loader.setDRACOLoader( dracoLoader );

const ktx2Loader = new KTX2Loader().setTranscoderPath( '../../libs/three.js/r170/examples/jsm/libs/basis/' );
const ktx2Loader = new KTX2Loader().setTranscoderPath( '../../libs/three.js/r171/examples/jsm/libs/basis/' );
ktx2Loader.detectSupport( renderer );
loader.setKTX2Loader( ktx2Loader );
loader.setMeshoptDecoder( MeshoptDecoder );
Expand Down
6 changes: 3 additions & 3 deletions examples/threejs_webgpu/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
<script type="importmap">
{
"imports": {
"three": "../../libs/three.js/r170/build/three.webgpu.js",
"three/tsl": "../../libs/three.js/r170/build/three.webgpu.js",
"three/addons/": "../../libs/three.js/r170/examples/jsm/"
"three": "../../libs/three.js/r171/build/three.webgpu.js",
"three/tsl": "../../libs/three.js/r171/build/three.tsl.js",
"three/addons/": "../../libs/three.js/r171/examples/jsm/"
}
}
</script>
Expand Down
Loading

0 comments on commit 1cac024

Please sign in to comment.