r123
版本发布时间: 2020-11-25 19:01:16
mrdoob/three.js最新发布版本:r170(2024-10-31 15:07:49)
https://github.com/mrdoob/three.js/wiki/Migration-Guide#r122--r123 https://github.com/mrdoob/three.js/milestone/36?closed=1
Source
- Global
- More usage of ES6 default values. #20586, #20742, #20749, 00f2725c37e5ed1cca5edae4a9e4031ef1346683 (@linbingquan, @mrdoob)
- BufferGeometry
- Add
.hasAttribute()
. #20733 (@Mugen87)
- Add
- Clock
- Avoid code redundancy. #20743 (@linbingquan)
- DataTexture
- Added serialization/deserialization support. #17745, #20736 (@Mugen87)
- DataUtils
- New component for data conversion tasks. #20580, #20581 (@Mugen87)
- InstancedMesh
- Add
.getColorAt()
. #20663 (@Mugen87)
- Add
- Matrix3/Matrix4
- Introduce
.invert()
. #20611 (@Mugen87)
- Introduce
- Object3D
- Add
animations
property and serialization/deserialization support. #20738, #20744 (@Mugen87)
- Add
- Quaternion
- Rename
.inverse()
to.invert()
. #20613 (@Mugen87)
- Rename
- SkinnedMesh
- Added serialization/deserialization. #20589 (@Mugen87)
- Skeleton
- Clarify properties and clean up TS. #20639 (@Mugen87)
- WebGLBindingStates
- Resolve memory leak caused by using
Object.keys()
. #20643 (@takahirox)
- Resolve memory leak caused by using
- WebGLRenderer
- Enable half float attributes. #20587 (@Mugen87)
- Set
style.display
toblock
in constructor. #20616 (@mrdoob)
- WebGLState
- Ensure
reset()
resets all status variables. #20732 (@webglzhang)
- Ensure
- WebXRController
- Hide controller while system UI is up. #20730 (@cabanier)
Documentation
- Clean up. #20601, #20623, #20699 (@Mugen87, @linbingquan)
- Unify type case. #20596 (@gonnavis)
- Improve
How to update things
guide. #20605 (@Mugen87) - Clarify
InstancedMesh.setMatrixAt()
. #20620 (@gonnavis) - Added
.setColorAt()
toInstancedMesh
. #20662 (@Mugen87) - Clarify usage of
WebGLRenderer.info
. #20678 (@Mugen87) - Fix
MathUtils.randFloatSpread()
style error. #20680 (@gonnavis) - Add note about non-uniform scale to
Matrix4.decompose()
. #20752 (@Mugen87)
TypeScript
- Add
userData
toMaterialParameters
. #20624 (@alexpreynolds) - Added additional type information
toArray()
. #20614 (@Antony74) - Add missing definition of
GLTFLoader
methods. #20712 (@FMS-Cat) - Add
.getHand()
typing inWebXRManager.d.ts
. #20707 (@wassx) - Fix return type of
Matrix4.invert()
. #20731 (@arodic) - Fix
Object3D.quaternion
description. #20739 (@JacobJaffe)
Examples
- Clean up. #20650, #20652, #20667, #20668, #20669, #20693, 2526d934b7bbd2b95e792be48823ba9043896a84 (@Mugen87, @mrdoob)
- Avoid computation of inverted matrices. #20577 (@gonnavis)
- More usage of
WebGLExtensions.has()
. #20615 (@Mugen87) - Improved
webgl_gpgpu_birds_gltf
example. #20645, #20646, #20649 (@gonnavis) - Converted
TessellateModifier
to recursive and made it similar toSubdivisionModifier
. #20430 (@arodic) - Remove usage of
Camera.target
. #20694 (@Mugen87) - Fixed
webgl_loader_texture_rgbm
example. 7fbb4a0956f5567ec5bcca8ba273ceef1d629137 (@mrdoob)
-
3DMLoader
- Read object names from
.3dm
file. #20684 (@perkma) - Assure a minimum
pointCount
of 2. #20692 (@perkma) - Fix issue when files have many objects. #20714 (@fraguada)
- Read object names from
-
3MFLoader
- Fix 3D model part parsing. #20756 (@Mugen87)
-
CurveModifier
- Fix shader code injection. #20691 (@mjurczyk)
-
DRACOExporter
- Properly support point clouds. #20706, #20726 (@Mugen87)
-
DragControls
- Use PointerEvents. #20734 (@Mugen87)
-
EffectComposer
- Add
.removePass()
. 3cda712be8b605c9e3ef50edc76eb44cd13a90be (@mrdoob)
- Add
-
FBXLoader
- Support
ColorRGB
asDiffuseColor
type. #20674 (@ilex0208)
- Support
-
GLTFExporter
- Remove
forcePowerOfTwoTextures
option. #20686, #20746 (@Mugen87) - Add basic support for
DataTexture
. #20588, #20750, 6910a7a207e34982b108c029a4056c5110f0e098 (@Mcgode, @Mugen87, @mrdoob) - Fix normal computation with interleaved data. #20745 (@Mugen87)
- Better support interleaved data in
getMinMax()
. #20751 (@Mugen87)
- Remove
-
GLTFLoader
- Set glTF primitive extensions to userData. #20679 (@donmccurdy)
- Support
KHR_materials_variants
extension and addwebgl_loader_gltf_variant
example. #20690, #20717, d72eb8950e9d2be5bb491570d897be8ac0f922df (@cx20, @donmccurdy, @mrdoob)
-
KTX2Loader
- Allow
.parse()
to initialize transcoder. #20677 (@donmccurdy)
- Allow
-
LineMaterial
- Add dash offset. #20593 (@Mugen87)
-
LottieLoader
- Add a new loader and
webgl_loader_texture_lottie
example. #20585, 940fe933dafc486f395462622bf038ba5ad952e2, 1096e8f8d8147b61387bf6194298e577649d0a9c (@mrdoob)
- Add a new loader and
-
MeshSurfaceSampler
- Add
.setRandomGenerator()
. #20576 (@gkjohnson) - Support vertex colors. #20702 (@Mugen87)
- Add
-
NodeMaterial
- Ensure
defines
are properly set. #20630 (@Mugen87) - Fix setting of extensions. #20655 (@Mugen87)
- Ensure
-
OBJExporter
- Add support for colored point clouds. #20695 (@Mugen87)
-
OBJLoader
- Better support point clouds. #20724 (@Mugen87)
-
OrbitControls
- Removed tabIndex side effect. #20617 (@mrdoob)
- Fix theta clamping. #20628 (@luna-magicad)
- Fixed sticky controls when disabled. #20735 (@arodic)
-
PLYLoader
- Fix byte length computation of header. #20626 (@Mugen87)
-
RoundedBoxBufferGeometry
- New geometry generator. #20597, #20606, #20632, #20666, #20672, a4f71beffdbd18b471f736e7eb1e1f48c626fd79 (@mrdoob, @gkjohnson)
-
SVGLoader
- Fix arc parsing with zero radius path commands. #20644 (@gregzanch)
-
WebGPURenderer
- Introduce
WebGPUTextureRenderer
. #20574 (@Mugen87, @mrdoob) - Introduce
ShaderLib
. a01651a4de43368498ba5f95fc61c83b8888dc14 (@Mugen87) - Set
style.display
toblock
in constructor. edc60767171bfdad375834e0847a0c713baa57fe (@Mugen87)
- Introduce
-
XYZLoader
- Added new loader and
webgl_loader_xyz
example. #20689 (@Mugen87)
- Added new loader and
Editor
- Add support for
PointsMaterial
. #20701 (@Mugen87) - Ensure material selection fits to object type. #20710 (@Mugen87)
- Add support for loading DRACO encoded point clouds. #20711 (@Mugen87)
- Add
XYZLoader
. #20727 (@Mugen87) - Improve Chinese translation. #20728 (@linbingquan)
- Trigger rendering when animation is stopped. #20753 (@Mugen87)
Tests
- Add
Object3D.updateMatrix()
unit test. #20676 (@takahirox) - Add
Object3D.updateMatrixWorld()
unit test #20685 (@takahirox) - Add
Object.localToWorld()
andObject.worldToLocal()
unit tests. #20721 (@takahirox)