Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: Bump three to r160 #1348

Merged
merged 3 commits into from
Jan 17, 2024
Merged

deps: Bump three to r160 #1348

merged 3 commits into from
Jan 17, 2024

Conversation

0b5vr
Copy link
Contributor

@0b5vr 0b5vr commented Jan 10, 2024

This PR will bump Three.js to r160.

  • Since it's bumped from r154, we have to address the change regarding the legacy light.
    • Updated all examples because of this change.
    • You have to multiply the directional light intensity by PI since now the light unit is set to a physically based one by default.
  • I also added several COMPAT comments on pre-156 compats addressed in fix: Fix compatibility breaks at three r157 on MToon #1304.

I checked that all examples are working properly.

@0b5vr 0b5vr added the dependencies Pull requests that update a dependency file label Jan 10, 2024
@0b5vr 0b5vr added this to the next milestone Jan 10, 2024
@0b5vr 0b5vr requested a review from ke456-png January 10, 2024 08:36
@0b5vr 0b5vr self-assigned this Jan 10, 2024
@0b5vr 0b5vr modified the milestones: v2.0.7, next Jan 15, 2024
- The type parameter of `THREE.Object3D` is no longer required (used to be `THREE.Object3D<THREE.Event>`
- `THREE.UniformsUtils.merge` now has more appropriate typing which breaks the existing code, workarounded with `as any`
Starting from r155, the light unit is set to physically based one by default.
We need to multiply the directional light intensity by PI because of this change.

See: mrdoob/three.js#26392
also removed an impossible compat code path
@0b5vr
Copy link
Contributor Author

0b5vr commented Jan 15, 2024

rebase ✅

@ke456-png
Copy link
Contributor

I checked examples are working in three.js r160 & r154

Copy link
Contributor

@ke456-png ke456-png left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NICE! 👍

@0b5vr 0b5vr merged commit 60368ba into dev Jan 17, 2024
6 checks passed
@0b5vr 0b5vr deleted the bump-three-r160 branch January 17, 2024 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants