Skip to content

Commit

Permalink
Merge pull request #728 from cx20/update_threejs_to_latest
Browse files Browse the repository at this point in the history
Update three.js r157 to r158
  • Loading branch information
cx20 authored Nov 3, 2023
2 parents 07cb4dd + 6c431a5 commit 9a32fec
Show file tree
Hide file tree
Showing 39 changed files with 123,264 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/threejs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<script type="importmap">
{
"imports": {
"three": "../../libs/three.js/r157/build/three.module.js",
"three/addons/": "../../libs/three.js/r157/examples/jsm/"
"three": "../../libs/three.js/r158/build/three.module.js",
"three/addons/": "../../libs/three.js/r158/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 @@ -126,10 +126,10 @@ function init() {
const loader = new GLTFLoader(manager);
loader.setCrossOrigin( 'anonymous' );

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

const ktx2Loader = new KTX2Loader().setTranscoderPath( '../../libs/three.js/r156/examples/jsm/libs/basis/' );
const ktx2Loader = new KTX2Loader().setTranscoderPath( '../../libs/three.js/r158/examples/jsm/libs/basis/' );
ktx2Loader.detectSupport( renderer );
loader.setKTX2Loader( ktx2Loader );
loader.setMeshoptDecoder( MeshoptDecoder );
Expand Down
Loading

0 comments on commit 9a32fec

Please sign in to comment.