r157
版本发布时间: 2023-09-28 23:13:39
mrdoob/three.js最新发布版本:r164(2024-04-26 16:47:47)
https://github.com/mrdoob/three.js/wiki/Migration-Guide#r156--r157 https://github.com/mrdoob/three.js/milestone/70?closed=1
- Global
- Clean up. #26763, #26774 (@linbingquan)
- Fix source maps in minified build files. #26780 (@ycw)
- Remove outdated code in
rollup.config.js
. #26803 (@ycw)
- AnimationUtils
- Remove
arraySlice()
. #26756 (@ycw)
- Remove
- Camera
- Simplify
getWorldDirection()
. #26743 (@ycw)
- Simplify
- Color
- Clean up
offsetHSL()
. #26817 (@ycw)
- Clean up
- CubeCamera
- Add comment to clarify mipmap generation. #26772 (@Mugen87)
- Add
activeMipmapLevel
. #26770 (@sunag)
- CurvePath
- Return
this
inclosePath()
. #26697 (@Mugen87) - Use correct line type in
closePath()
. #26850 (@GuoBinyong)
- Return
- Fog
- Make sure
name
can be serialized/deserialized. (@ycw)
- Make sure
- LightProbe
- Remove
AmbientLightProbe
andHemisphereLightProbe
. #26715 (@WestLangley)
- Remove
- Material
- Clean up
toJSON()
. #26791 (@ycw)
- Clean up
- MaterialLoader
- Avoid creating undefined
linewidth
property. #26707 (@epreston)
- Avoid creating undefined
- RenderTarget
- Refactor default constructor parameters. #26775 (@linbingquan)
- Shaders
- Remove struct
GeometricContext
to improve Adreno GPU support. #26805 (@Mugen87)
- Remove struct
- WebGLProgram
- Add
USE_ANISOTROPY
toprefixVertex
. (@uma-neko)
- Add
- WebGLRenderer
- Support "Linear Display P3" working color space and "Display P3" unlit rendering. #26644 (@donmccurdy)
- Introduce
USE_LIGHT_PROBES
define. #26768 (@Mugen87)
- WebGLTextures
- Increase default precision for depth buffers with WebGL 2. #26764 (@Mugen87)
Documentation
- Improve
Fog
page. #26792 (@ycw) - Improve
Material
page. #26664 (@donmccurdy) - Improve
MeshPhysicalMaterial
page. #26753 (@Ameobea) - Improve Chinese translation. #26693, #26701, #26728, #26855 (@sdarpeng, @Junior2Ran, @SADYX)
- Improve
Libraries and Plugins
guide. #26723, #26722, #26819, #26828 (@marwie, @trusktr, @isaac-mason) - Document default value of
userData
properties. #26799 (@tim-we)
Examples
- Clean up. #26678, #26706, #26800, d6c8dd0b50a2994c05f94687ed0dfa44ae61ee4c, 1c85c953f49d154997e43d73b3ce3847d723d0a5 (@WestLangley, @epreston, @sunag, @mrdoob)
- Remove import maps polyfill. #26836 (@marcofugaro)
- Rename some WebGPU Compute examples. #26845 (@sunag)
-
3DMLoader
- Update to support Rhino 8 files. #26745 (@fraguada)
-
BufferGeometryUtils
- Shift the hash bin to avoid missing neighbors in
mergeVertices()
. #26746 (@gkjohnson)
- Shift the hash bin to avoid missing neighbors in
-
DragControls
- Add recursive property. #26747 (@ssk4988)
-
GLTFExporter
- Simplify inner cone angle equation. #26787 (@WestLangley)
-
GLTFLoader
- Fix to handle reject on
afterRoot()
. #26852 (@MtBlue81)
- Fix to handle reject on
-
LDrawLoader
- Use
WeakMap
instead ofuserData
for indexing materials. #26700 (@Mugen87)
- Use
-
LightProbeGenerator
- Add support for half float render targets. #26773 (@Mugen87)
-
LineMaterial
- User getter/setter syntax. #26720 (@LeviPesin)
-
NodeMaterial
- Clean up
HashNode
, cite original authorship. #26695 (@LeviPesin) - Export viewport and minor fixes. #26698 (@aardgoose)
- Add
Line2
support. #26704 (@aardgoose) - Consume
labels()
when used, to prevent duplicate uniform names. #26822 (@aardgoose) - Fix
context.material
reference inRenderNodes
. #26838 (@sunag) - Rename
TextureNode.getTextureMatrix()
togetTransformedUV()
. #26839 (@sunag) - Rename
construct()
tosetup()
. #26840 (@sunag) - Add support for other formats in
StorageTexture
. #26842 (@sunag) - Fix
addNodeClass()
andaddNodeMaterial()
in case of renaming classes. #26846, #26858 (@LeviPesin)
- Clean up
-
RGBELoader
- Correct error display message. #26742 (@epreston)
-
Sky
- Use
cameraPosition
uniform instead of world origin in sky shader. #26766 (@StrandedKitty)
- Use
-
TSL
- Fix
negate()
. #26804 (@sunag) - Add
SetNode
. #26785 (@sunag) - Introduce
ShaderCallNode
&tslFn
improvements. #26824 (@sunag) - Fix include one function under another. #26844 (@sunag)
- Fix
-
USDZLoader
- Distinguish between text (supported) and binary (not supported) usd files and fix UV parsing. #26709 (@hybridherbst)
- Load metallic, roughness, emissive, occlusion textures and fix color spaces. #26710 (@hybridherbst)
- Switch to
MeshPhysicalMaterial
and add initial clearcoat/clearcoatRoughness/ior support. #26713 (@hybridherbst) - Fix index array type. #26751 (@GitHubDragonFly)
- Added texture scale + offset + rotation support. #26861 (@GitHubDragonFly)
-
WebGPURenderer
- Invert viewport/scissor y coords. #26730 (@aardgoose)
- dFdy vs dpdy #26776 (@aardgoose)
- Add
StorageTexture
. #26769 (@sunag) - Texture fixes for WebGL backend. #26797 (@aardgoose)
- CCW FrontFace as default. #26807 (@sunag)
- Basic render to texture support for WebGL backend. #26801 (@aardgoose)
- Support
textureCompare()
operations in WebGL backend. #26823 (@aardgoose) - Fix
flipY
example. #26843 (@sunag) - Fix multi-material in
WebGLNodeBuilder
. #26841 (@sunag)
Editor
- Fix style error when resizing the sidebar. #26703 (@linbingquan)
- Add
clearcoatMap
andclearcoatRoughnessMap
. #26712 (@hybridherbst) - Fix camera transform when using select in Firefox. #26717 (@Mugen87)
- Add serialization support for
modelviewer
environment. #26718 (@Mugen87) - Fix
CapsuleGeometry
parameter. #26794 (@Mugen87)