r135
版本发布时间: 2021-11-26 17:23:11
mrdoob/three.js最新发布版本:r170(2024-10-31 15:07:49)
https://github.com/mrdoob/three.js/wiki/Migration-Guide#r134--r135 https://github.com/mrdoob/three.js/milestone/48?closed=1
- Layers
- Add
isEnabled()
. #22825 (@felixmariotto, @Mugen87) - Fix internal mask when using
.set()
. #22867 (@1337816495)
- Add
- MathUtils
- Revert
crypto.randomUUID()
usage ingenerateUUID()
. #22805 (@larsmoa)
- Revert
- MeshPhysicalMaterial
- Use
0
asthickness
default. #22762 (@Mugen87) - Fix clearcoat shader computation. #22839 (@WestLangley)
- Use
- StereoCamera
- Avoid unnecessary call of
.clone()
. #22830 (@WestLangley)
- Avoid unnecessary call of
- WebGLProgram
- Simplify and fix
sheen
evaluation. #22767 (@Mugen87)
- Simplify and fix
- WebGLRenderer
- Remove
__maxMipLevel
. #22788 (@Mugen87) - Add
data-engine="three.js r${REVISION}"
to the canvas element. #22792 (@mrdoob) - Disable usage of
SRGB8_ALPHA8
. #22759 (@Mugen87) - Check if
_canvas
hassetAttribute()
before calling it. fe71b47232accbe26a5acc2e2c5bffe74219e551 (@mrdoob) - Remove LogLuv encoding from the shaders. #22876 (@WestLangley)
- Remove
- WebGLTexture
- Basic support for
gl.texStorage2D()
. #22790, 3c2e417f704576613d8033bb1292a6b9d2e3cd9e (@Mugen87)
- Basic support for
- WebGLUniforms
- Add setters for arrays of 3D textures and 2D texture arrays. #22847 (@jonaskordt)
- WebXRManager
- Reactor code by calling
WebGLRenderer.setRenderTarget()
. #22558 (@cabanier)
- Reactor code by calling
Documentation
- Remove pages about internals. #22775 (@Mugen87)
- Explain flatness of
values
parameter of keyframe tracks. #22766 (@jcamp0x2a) - Clarify
Object3D.attach()
limitations. #22821 (@WestLangley) - Improved Chinese translation. #22831 (@moshuying)
- Fix typo in
TransformControls
page. #22840 (@tonybfox)
Manual
- Merge
Threejsfundamentals
into three.js. #22807, 4519858cf301900773627ac1cafb2a7f41b0ace2 (@greggman, @mrdoob)
Examples
- Clean up. #22763, #22768, #22798, #22832, #22829, #22835, #22834, #22880 (@linbingquan, @Mugen87, @moshuying, @WestLangley)
- Rename CSM frustum class. #22752 (@Mugen87)
- Replaced
dat.gui
withlil-gui
. #22765 (@georgealways) - Use
undefined
instead ofvoid
ornull
. #22794, #22796, #22797 (@Mugen87) - Consistent documentation of
return this
. #22799 (@Mugen87) - Fix WebXR hand pointer examples. #22815 (@dmliao)
- Add out of bounds check to
games_fps
example. #22877 (@Uueuuuuu)
-
3DMLoader
- Update
rhino3dm
and support texture mapping. #22860 (@fraguada)
- Update
-
3MFLoader
- Change default material color to white. #22808 (@kovacsv)
-
ArcballControls
- Avoid some
.clone()
calls. #22856 (@Mugen87)
- Avoid some
-
DragControls
- Added .getRaycaster(). #22851, #22855, c547a74f901d1e608d546deaa3c0be20b6f7d868 (@draibolit, @Mugen87)
-
GLTFExporter
- Add
.parseAsync()
#22755 (@marcofugaro) - Add
KHR_materials_clearcoat support
. #22761 (@Mugen87) - Add
onError
parameter to.parse()
. #22774 (@marcofugaro)
- Add
-
GLTFLoader
- Add
.parseAsync()
. #22754 (@marcofugaro) - Honor morph targets when using lines. #22771 (@mfernba)
- Add
-
Line2
- Support raycasting with orthographic cameras. #22791 (@gkjohnson)
-
LineMaterial
- Restore
dashOffset
. #22749 (@Mugen87)
- Restore
-
LogLuvLoader
- Added new loader. #22857, #22879 (@Mugen87)
-
LWOLoader
- Update material setup to match LW native materials. #22776 (@onthez)
-
NodeMaterial
- Add minimal version visual node editor. #22833, #22868 (@sunag)
- Revision and updates. #22878 (@sunag)
-
OrbitControls
- Add "sticky controls patch" back. #22862 (@Mugen87)
-
PLYLoader
- Honor different attribute names. #22784 (@nh2, @Mugen87, @mrdoob)
-
SVGLoader
- Make
createShapes()
retain curves. #22778 (@georgpukk)
- Make
-
USDZExporter
- Added console warning when the material type is unsupported. 6e4f7a5fa7f1944e941019a655ae50868f2a883a (@mrdoob)
-
WebGPURenderer
- Fix
bgra
constants. #22795 (@takahirox) - More efficient texture updates. #22869 (@Mugen87)
- Fix
Editor
- Fix
envMap
field. #22820 (@Mugen87)