https://github.com/mrdoob/three.js/wiki/Migration-Guide#r117--r118
https://github.com/mrdoob/three.js/milestone/31?closed=1
(626,280 KB, gzip: 156,063 KB)
Source
- Global
- More usage of
let
andconst
. #19490, #19499, #19503, #19504, d679268 (@Mugen87, @mrdoob) - Clean up. #19522, #19532, #19565, #19701, 85865bc (@linbingquan, @DigiTec, @mrdoob)
- Update contribution guide. #19520 (@DefinitelyMaybe)
- Introduced constructor default values in Euler/Quaternion/Vector classes. #19678 (@mrdoob)
- More usage of
- BufferAttribute
- BufferGeometry
- Retain interleaved data when using
.toJSON()
. #19528, #19536, #19538 (@Mugen87) - Retain interleaved data when using
.clone()
. #19539 (@Mugen87) - Add ability to read interleaved data in
.computeVertexNormals()
. #19600 (@Mugen87) - Use
Vector3.fromBufferAttribute()
in.normalizeNormals()
. #19610 (@Mugen87)
- Retain interleaved data when using
- Geometry
- ImageBitmapLoader
- ImageUtils
- LightShadow
- Material
- MeshToonMaterial
- Object3D
- PMREMGenerator
- Refactoring. #19607, #19705 (@WestLangley)
- Set
NoToneMapping
. #19651 (@WestLangley)
- Texture
- Remove
SphericalReflectionMapping
. #19517 (@WestLangley)
- Remove
- WebGLBackground
- WebGLProgram
- WebGLGeometries
- WebGLPrograms
- WebGLRenderer
- Removed
toneMappingWhitePoint
. #19601 (@mrdoob) - Removed
Uncharted2ToneMapping
. #19606 (@mrdoob) - Added
CustomToneMapping
. #19707 (@mrdoob) - Create WebGL 2 context by default. #19620, #19625, #19628, #19635, #19646, e6b297c, c5dc006 (@mrdoob, @Mugen87)
- Improve ACES Filmic tone mapping. #19621, #19631, #19696, da8dad4, #19704 (@WestLangley, @mrdoob)
- Add
WebGL1Renderer
. #19647 (@Mugen87) - Added VAO support. #16287, #19725 (@takahirox, @Mugen87)
- Accept
null
when using.setAnimationLoop()
. #19695 (@Mugen87) - Made render loop code simpler and more robust. 5288ed2, 5ddb4aa (@mrdoob)
- Honor
pixelStorei
properties in.copyTextureToTexture()
. #19710 (@felixpalmer)
- Removed
Documentation
- Clean up. #19544, #19543, #19553, #19612, #19664, #19668, #19655 (@ycw, @Mike-Dax, @Mugen87)
- Improve
How to run things locally
guide. #19505 (@Fasani) - Improve Chinese translation. #19514, #19680 (@linbingquan)
- Added
DataTexture2DArray
page. #19582 (@gero3) - Improve
Box3
page. #19572 (@evanharwin) - Improve
CatmullRomCurve3
page. #19516 (@rjanicek) - Improve
ExtrudeBufferGeometry
page. #19685 (@rjanicek) - Improve
Ray
page. #19497 (@Seprum) - Improve
Scene
page. #19515 (@nstringham) - Fix
combine
usage in material browser. #19594 (@rotoglup) - Improve styles of language selection. #19636, 06bbffe, 1af3252 (@linbingquan, @mrdoob)
- Update valid camera far range #19659 (@WestLangley)
- Added
AmbientLightProbe
page. #19675 (@gero3) - Added
HemisphereLightProbe
page. #19684 (@gero3) - Update
Material.stencilWrite
. #19692 (@gkjohnson) - Update
Installation
section for ES Module migration. #19622, #19728 (@donmccurdy)
TypeScript
- Clean up: #19512, #19529, #19552, #19577 (@linbingquan, @taphos)
- Remove obsolete definition in
Triangle.d.ts
. #19509 (@linbingquan) - Remove legacy parameters in math classes. #19519 (@linbingquan)
- Allow array of materials in
InstancedMesh
generics declaration. #19502 (@xawill) - Allow for 3 optional arguments when creating
Stats.Panel()
. #19573 (@marquizzo) - Accept
Object3D
as first argument inWebGLRenderer.render()
. #19564 (@martinRenou) - Add RoomEnvironment.d.ts. #19711 (@Mugen87)
- Change
Material
toShaderMaterial
in ShaderPass. #19721 (@jhlee4) - Add missing
WebGL1Renderer
to Typescript definitions. #19729 (@subblue)
Examples
- Clean up. #19537, #19687, b712a00, 3e56941, 0b248d1 (@Mugen87, @mrdoob)
- Fix CSS of start button for device orientation examples. #19530 (@marcofugaro)
- Implement
copy()
inCSS2DObject
andCSS3DObject
. #19587 (@Mugen87) - Use
ownerDocument
in controls classes. #19682 (@gero3) - Improve GUI in
webgl_animation_cloth
example. #19683 (@gero3) - Modularize
physics_cannon_instancing
example. #19686 (@Mugen87) - Improve CSS of multiple canvas examples. #19699 (@linbingquan)
- Improved
misc_uv_tests
example. b2eaf43 (@mrdoob) - Improved
webgl_shaders_ocean
example. d783da4 (@mrdoob) - Improved
webgl_materials_car
example. 7841862 (@mrdoob) - Improved
webgl_materials_car
example. 0b8e3d8 (@mrdoob) - Removed
webgl_performance_doublesided
example. bd487a8 (@mrdoob) - Set
.encoding
to matchWebGLRenderer.outputEncoding
forReflector
andRefractor
. 34fe461 (@mrdoob) - Removed
HelioWebXRPolyfill
. f60a0eb (@mrdoob) - Refactored
RoomEnvironment
. 56c1c01 (@mrdoob) - Avoid using linear tone mapping. #19712 (@WestLangley)
- Fix imports in
CameraControls
. #19747 (@yushijinhun)
-
BasisTextureLoader
-
EXRLoader
- Support
v3f
attribute type. #19591 (@WestLangley)
- Support
-
GLTFLoader
-
MeshSurfaceSampler
-
OrbitControls
- Set
screenSpacePanning
totrue
by default. #19602 (@WestLangley) - Support more flexible azimuthal limits. #19298 (@WestLangley)
- Set
-
PointerLockControls
- Add min/max polar angle. #19580 (@WestLangley)
-
Sky
-
TransformControls
-
Water
-
XRControllerModelFactory
Editor
- Clean up. ff1fc11, 330d29d, 92ad8c5, a539666, 6ce6848. a36f902, 8c5cfcb, a14f405 (@mrdoob)
- Fix usage of rendering settings. #19506 (@Mugen87)
- Update sidebar UI when camera changes. #19547 (@gero3)
- Improved toolbar. #19584, 38cbc99 (@mrdoob)
- Improved Chinese translation. #19590, #19671, #19679, #19708 (@linbingquan)
- Make sure to log an unsupported file extension. #19592 (@gero3)
- Implemented collapsable outliner items. #19642, 53c8f13 (@mrdoob)
- Refactored background/environment code. #19693 (@mrdoob)
- Fixed project title input size. 7199af9 (@mrdoob)
- Refactored
Sidebar.Project
. 94ac6fb, e37cb98, 851dd14 (@mrdoob) - Fixed map slots alignment. d126788 (@mrdoob)
- Added Depth Test/Write in Material panel. 9bd4460 (@mrdoob)
- Temporarily comment out
Sidebar.Scene
'sobjectChanged
code. 5057626 (@mrdoob) - Added
normalBias
support. 6ed6494 (@mrdoob) - Disable
EditorControls
when camera is noteditor.camera
. 521a8ca (@mrdoob) - Improved
shadow.bias
input. 06c3353 (@mrdoob) - Added draco/gltf to
sw.js
. 26179df (@mrdoob) - Improved prefers-color-scheme handling. 2f3976c (@mrdoob)
- Improved Background UI. 18439fe (@mrdoob)
- Fixed Equirectangular Background in Safari. 3fe6cfb (@mrdoob)
- Avoid instantiating new fogs when changing settings. 7de14fd (@mrdoob)
- Fixed grid rendering on top of materials with
depthWrite
false. 08d8d14 (@mrdoob)
Tests
- Clean up. #19608 (@WestLangley)
- Added tests for
AnimationMixer.stopAllAction()
. #19508 (@DsRQuicke) - Make CI and tests more robust. #19545, #19546, #19550, #19556, #19557, #19559, #19560 (@munrocket, @gero3)