v1.10.0
Features
🆕 Added glTF sheen extension support! We now support all of the released PBR extensions. See fidelity comparisons here. mrdoob/three.js#23069
🆕 Added repetitions
and pingpong
options to the play()
method for better animation control. Thanks @futahei! #3021, #3104
🆕 Added uv
coordinates to the output of positionAndNormalFromPoint()
. Thanks @BR14Nx! #3043
🆕 Added a zoom()
function to allow programmatic camera manipulation equivalent to keyboard/scroll/pinch zoom behavior. #3087
🆕 Default framing now accounts for non-default field of view. This means when you want a custom focal length, you no longer need to calculate and set a corresponding radius in camera-orbit
. #3105
Bug fixes
- Fixed slow loading for identical models in multiple elements. ✋BREAKING CHANGE: the
setURI
method now changes a texture for all models that point to it. To individually change a texture when the same model has been reused, please use the newercreateTexture
API. #2935 - Fixed
setAlphaMode
. Thanks @SrirachaSource! #2985 - Reduced shader re-compilation to improve performance. #3045
- Fixed clicks causing extra progress bar advancement. Thanks @mehak08g! #3077
- Workaround for a Safari 15 bug that was causing textures to randomly show up black. #3082
- Output now correctly uses sRGB encoding rather than gamma. This slightly lightened our renders, so you may want to regenerate seamless poster images. #3082
- Fixed some subtle camera errors. #3087
- Fixed variant switching error. Thanks @SrirachaSource! #3086
- Fixed Windows loading performance regression (properly this time). #3004
- Made progress bar advance more linearly. #3110, #3111
Examples
✨ Added Thor camera views example. Thanks @hybridherbst! #3018
✨ Fixed example strings. Thanks @benmbark! #3040
✨ Updated transparency example to demonstrate glTF transmission support. #3112
Other notable changes
- Updated to Three.js r136. Includes an upstreamed performance improvement for PBR: mrdoob/three.js#22998
- Made a generic 3D Twitter player card and a generator for anyone to quickly customize their own. #3026, #3031, #3036, #3038
- Improved developer experience by unpackaging shared-assets and shallow-cloning Khronos sample models. #3079