https://github.com/mrdoob/three.js/wiki/Migration-Guide#r120--r121
https://github.com/mrdoob/three.js/milestone/34?closed=1
(646,271 KB, gzip: 157,542 KB)
Source
- Global
- Move to ES6 classes. #20240, 853f445 (@mrdoob)
- Add
/*@__PURE__*/
to module scope variable assignments. #20236 (@ianpurvis)
- AnimationUtils
- BufferGeometry
- Chainable
setIndex()
method. #20413 (@takahirox)
- Chainable
- EdgesGeometry
- Move to
BufferGeometry
. #20327 (@gkjohnson)
- Move to
- Geometries
- ImageBitmapLoader
- Lights
- LightShadow
- Remove from public API. #20288 (@WestLangley)
- Line
- Loader
- Introduce
.setWithCredentials()
. #20355, #20364, #20374 (@amosbyon1224, @Mugen87)
- Introduce
- MeshPhysicalMaterial
- Improved transmission model. #20273 (@WestLangley)
- Added
.ior
property. #20322 (@WestLangley)
- Object3D
- Correctly update world matrix prior to use. #19969 (@WestLangley)
- Points
- PolyhedronGeometry
- More fine-tuned picking of level of detail. #20255, #20420 (@felixmariotto, @Mugen87)
- SpotLightShadow
- Added
.focus
property. #20218 (@WestLangley)
- Added
- WebGLCubeRenderTarget
- WebGLShadowMap
Documentation
- Clean up. #20263, #20378, #20379, #20383, #20382, #20381 (@mentaltoy, @ycw, @ACMCMC)
- Improved Arabic localization. #20190, #20377 (@hassanMuhamad)
- Improved
WebGLProgram
page. #20293 (@Adjective-Object) - Clarify loop unroll behavior. #20306 (@gkjohnson)
- Clarify behavior for Material
blendDst
,blendEquation
, andblendSrc
whennull
. #20344 (@gkjohnson) - Fixed WebGL Spec links. 1fae7ea (@mrdoob)
- Geometry UVs are
Vector2
s. #20406 (@TiraO) - Clarify
InstancedBufferAttribute.meshPerAttribute
. #20408 (@Mugen87) - Added
undefined
asMaterial.defines
type. #20356 (@ycw) - Improve
Object3D
page. #20386 (@mjurczyk)
TypeScript
- Clean up. #20285, #20337, #20338, #20339, #20342, #20343 (@linbingquan, @ycw)
- Improve
CondNode
constructor's type. #20232 (@martinRenou) - Add logical operators to
CondNode
. #20231 (@martinRenou) - Fix
Vector3.fromBufferAttribute()
type definition. #20235 (@Mike-Dax) - Add
InstancedMesh.setColorAt()
definition. #20250 (@ben-voss) - Fixed wide line typings. #20267 (@giulioz)
- Added definitions for CSM classes. #20270 (@Sean-Bradley)
- Make
ArrowHelper
's color parameter more permissive. #20282 (@deerob4) - Remove
mode
fromLineSegments
ctor. #20295 (@ycw) - Removed outdated
*IdCount
. #20341 (@ycw) - Fix inheritance of
WebXRManager
. #20352 (@Mugen87) - Fixed
load()
inCompressedTextureLoader
. #20373 (@linbingquan) - Added types for WebXR API. #20150 (@PalashBansal96)
- Added
setScaleSnap
type definition toTransformControls
. #20423 (@YoshihiroIto) - Clean up geometry generators. #20426 @klevron
- Fix
color
property type onLineBasicMaterial
. #20429 (@Methuselah96) - Fix
ExpressionNode
contructor's type definition. #20213 (@martinRenou)
Examples
- Clean up. #20233, #20246, #20360, #20405 (@SanjoSolutions, @Mugen87, @pschroen)
- Assign equirect env maps directly to
Scene.background
. #20189 (@Mugen87) - Properly handle EXR files on drag-and-drop in
webgl_materials_matcap
example. #20261 (@WestLangley) - Linearize sRGB material color in
webgl_materials_matcap
example. #20279 (@WestLangley) - Properly initialize helpers in
webgl_materials_envmaps_parallax
example. #20278 (@WestLangley) - Use
RectAreaLightHelper
inwebgl_lights_rectarealight
example. #20277 (@WestLangley) - Refactor controls in
webgl_geometry_spline_editor
example. #20312 (@Mugen87) - More usage of pointer events and terminology. #20316, #20353 (@Mugen87)
- Fix timing bug in
misc_controls_pointerlock
example. #20334 (@arodic) - Fixed broken pointer event handling when
pointerType
ispen
. #20336 (@arodic) - Removed
misc_animation_authoring
example. #20363 (@Mugen87) - Simplified
webgl_multiple_scenes_comparison
example. 65494f3, a72e73d (@mrdoob) - Improved
GridHelper
in black backgrounds. c39ede5 (@mrdoob) - Replaced all touch events usage. 0a1131f (@mrdoob)
- Update geometries in
webgl_lod
. c9b5020 (@mrdoob) - Remove
TypedGeometryExporter
. #20404 (@Mugen87) - Add jittering to reduce sampling artefacts in
webgl2_volume_cloud
example. #20222, b44e670 (@DavidPeicho, @mrdoob) - Added
misc_legacy
example. d2f0e5c (@mrdoob)
-
3DMLoader
-
BasicNodeMaterial
- Improve shaders. #19955 (@martinRenou)
-
DRACOLoader
- Improve performance with new
GetArray
methods. #20399 (@donmccurdy)
- Improve performance with new
-
GLTFLoader
- Modified spec/gloss shader to match the
glTF
spec. #20226 (@WestLangley) - Properly set defines for
GLTFMeshStandardSGMaterial
#20242 (@WestLangley) - Add node hookpoint and move the lights extension handler to the new system. #19892 (@takahirox)
- Fix alpha detection for
colorType=3,4
. #20376 (@donmccurdy) - Deduplicate node names. #16639 (@donmccurdy)
- Modified spec/gloss shader to match the
-
Line2
-
LineSegements2
- Add a
threshold
raycaster parameter. #20375 (@gkjohnson)
- Add a
-
RoughnessMipmapper
-
SVGLoader
- Implement
defs
anduse
nodes. #20209 (@yomboprime)
- Implement
-
TransformControls
-
VTKLoader
-
WebGPURenderer
- Added new renderer. #20254, #20257, #20268, #20274, #20272, #20275, #20281, #20284, #20283, #20330, #20298, #20390, 9618bc8, d4083dc, c3d8a89, 26472f8, 6e19f98, 9021c89, fe65eaf, 211d4c0, 33079a0, 5d72fec, 10bff9f, 8277a52, 63a0b7b, 317bd1c, 5029895, e1fde83, da64654, 2aca7c6, 7a096e8, 2519b47, 2876fcc, d82f89e, e103579, 329cb62, b166f40, 91e38e7, 1e36728, 3fd2561, b0f4546, 56d0b32, 00cabc4, 8e70942, 201e67b, b906fb3, 67ca362, 37ca608, 6f3e651, 1268b10, 3092ff9, 0200e03, 57fa67f, 0228293, 029877f, cf9822c, 839f462, 7551139, 1c7f4c9, 9676f7f, 29ec65b, 0229ebd, 9ee09d6, dfe538e, d5c3089, c95ea0b, cd3003f, 7bb3c2c, 16353c9, 3dcce7a, 7830fe3, 1893c9d, cd95aa4, 5e1417c, fcdfc8a, 6246c13, ade8cd9, b4d4566, 9a6f648, 3d8f432, e22c4ff, 932dc84, c9a8edc, 3056904, 551adcb, d4a3e62, fbea62b, cb623ed, 0466c14, b7c038d, 66b9fa3, d85592a, 0576e70, 44e7ea9, 2a6229d, e6b67d3, 4314d79, 6a57d82, fcd0cc4, 2f73371, b02e7f9, 599eb63, 87f5644 (@Mugen87, @takahirox)
Editor
- Make
emissiveIntensity
configurable. #20227 (@Mugen87) - Fix light shadow configurations. #20358 (@Mugen87)
- Tweaked cursors. f32bb9f (@mrdoob)
- Refactored
Resizer.js
. b215c36, 70f0001 (@mrdoob) - Remove touch-action css temporarily. b478609 (@mrdoob)
- Fix
VTK
import. #20397 (@Mugen87) - Update esprima from 2.0 to 3.1. #20425 (@devingfx)
- Improve multi-file loading. 4392771 (@mrdoob)