Skip to content

Commit

Permalink
feat(deps): Update three from 0.154.0 to 0.159.0
Browse files Browse the repository at this point in the history
Notes:
- The lighting model has been updated in r155.
  Light intensity may requires much higher intensity values.
  See https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733
- AnimationUtils.arraySlice() has been removed in r157.
  All references in LegacyGLTFLoader have been replaced by TypedArray#slice()
- Quaternions are now expected to be normalized in r158.
  • Loading branch information
Desplandis committed Dec 22, 2023
1 parent 1bfd639 commit a2f9105
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 30 deletions.
4 changes: 2 additions & 2 deletions examples/effects_stereo.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.154.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.154.0/examples/jsm/"
"three": "https://unpkg.com/three@0.159.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.159.0/examples/jsm/"
}
}
</script>
Expand Down
4 changes: 2 additions & 2 deletions examples/misc_collada.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.154.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.154.0/examples/jsm/"
"three": "https://unpkg.com/three@0.159.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.159.0/examples/jsm/"
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/view_3d_map_webxr.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script type="importmap">
{
"imports": {
"three/addons/": "https://unpkg.com/three@0.154.0/examples/jsm/"
"three/addons/": "https://unpkg.com/three@0.159.0/examples/jsm/"
}
}
</script>
Expand Down
4 changes: 2 additions & 2 deletions examples/view_multi_25d.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.154.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.154.0/examples/jsm/"
"three": "https://unpkg.com/three@0.159.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.159.0/examples/jsm/"
}
}
</script>
Expand Down
52 changes: 34 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@
},
"peerDependencies": {
"proj4": "^2.8.0",
"three": "^0.154.0"
"three": "^0.159.0"
},
"devDependencies": {
"@babel/cli": "^7.22.5",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-transform-runtime": "^7.22.5",
"@babel/preset-env": "^7.22.5",
"@babel/register": "^7.22.5",
"@types/three": "^0.154.0",
"@types/three": "^0.159.0",
"babel-inline-import-loader": "^1.0.1",
"babel-loader": "^9.1.2",
"babel-plugin-inline-import": "^3.0.0",
Expand Down Expand Up @@ -110,7 +110,7 @@
"puppeteer": "^19.4.0",
"q": "^1.5.1",
"replace-in-file": "^7.0.1",
"three": "^0.154.0",
"three": "^0.159.0",
"typescript": "^5.1.6",
"url-polyfill": "^1.1.12",
"webpack": "^5.87.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Parser/deprecated/LegacyGLTFLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1907,8 +1907,8 @@ threeExamples.LegacyGLTFLoader = ( function () {
// be reused by other tracks, make copies here.
tracks.push( new TypedKeyframeTrack(
targetName + '.' + PATH_PROPERTIES[ target.path ],
THREE.AnimationUtils.arraySlice( inputAccessor.array, 0 ),
THREE.AnimationUtils.arraySlice( outputAccessor.array, 0 ),
inputAccessor.array.slice(),
outputAccessor.array.slice(),
interpolation
) );

Expand Down

0 comments on commit a2f9105

Please sign in to comment.