r138
版本发布时间: 2022-03-04 04:26:27
mrdoob/three.js最新发布版本:r171(2024-11-29 19:21:30)
https://github.com/mrdoob/three.js/wiki/Migration-Guide#r137--r138 https://github.com/mrdoob/three.js/milestone/51?closed=1
- Global
- Remove DeepScan and LGTM alerts. #23341, #23343, #23346, #23351, #23380, #23397, #23410, #23411, #23440, #23442, #23446 (@mrdoob, @Mugen87)
- Replace deprecated
String.prototype.substr()
. #23525 (@CommanderRoot)
- FileLoader
- Added workaround for Alipay browser's bug. #23548 (@neciszhang)
- Material
- Clean up
toJSON()
. #23438 (@linbingquan)
- Clean up
- PMREMGenerator
- Add support for variable size. #23322, #23428 (@elalish)
- Use logical OR instead of nullish coalescing. #23488 (@Mugen87)
- Fix anisotropic filtering. #23556, #23558, #23561, 28ce323f825a7f92587a84838c42d25beb2e7d10, 1db78b84b0152fcd561314140a6751109c894906 (@elalish, @mrdoob)
- Texture
- Added
Source
class. #22846, #23419, #23421 (@Mugen87) - Set
needsUpdate
to true in.copy()
. #23637 (@Mugen87)
- Added
- Vector3
- Add
setFromEuler()
, removeEuler.toVector3()
. #23494 (@WestLangley)
- Add
- WebGLCubeRenderTarget
- Use
CubeTexture.image
. #23433 (@Mugen87) - Simplify constructor. #23443 (@Mugen87)
- Use
- WebGLMultipleRenderTargets
- Add
options
to constructor. #22772 (@zalo)
- Add
- WebGLRenderer
- Enable blending when
Material.blending
is not set toNormalBlending
. #23416 (@gkjohnson) - Refactor creation of transmission render target. #23450, #23452, #23460, #23465 (@Mugen87, @mrdoob, @haxiomic, @marcofugaro)
- Remove
WebGLMultisampleRenderTarget
. #23455, #23611, #23644 (@Mugen87) - Fixed transmission rendering when using
ArrayCamera
. #23491 (@mrdoob) - Honor alpha definition in custom rendering context. #23504 (@Mugen87)
- Add support for morphing vertex colors. #23523 (@Mugen87)
- Enable blending when
- WebGLRenderTarget
- Clone
depthTexture
in.copy()
. #23462 (@mrdoob) - Add new render target types for 3D and array textures. #23498, #23515 (@Mugen87)
- Clone
- WebGLTextures
- Fix for data texture mipmaps uploading to correct levels. #23492 (@MatejJan)
- Remove render target texture fallback. #23470 (@Mugen87)
Documentation
- Clean up. #23345, #23383, #23553, #23532, #23529, #23557 (@Mugen87, @bergden-resonai, @ycw)
- Improve
BoxGeometry
page. #23530 (@Mugen87 - Improve
Color
page. #23369 (@stevinz) - Improve
CSS3DRenderer
page. #23567 (@SadmanYasar) - Improve
GLTFLoader
page. #23417 (@takahirox) - Improve
Raycaster
page. #23500 (@linbingquan) - Improve
RectAreaLight
page. #23469 (@puxiao) - Improved
SkinnedMesh
page. #23423, #23422 (@makc) - Improve
Useful-links
page. #23396, 23409 (@PratikDev, @Mugen87) - Improve
Vector*
pages. #23437 (@Mugen87) - Improve Chinese translation. #23445, #23457, #23487, #23518, #23545 (@jovey-zheng)
- Add missing Korean pages to
list.json
. #23391 (@Mugen87) - Add some missing API. #23510 (@Mugen87)
- Use
<p>
for supporting paragraphs. #23522 (@ycw) - Add missing
.is*
flag. #23565 (@ycw)
Manual
- Don't use
GammaEncoding
. #23364 (@Mugen87) - Remove outdated patterns in code examples. #23377, #23387, #23388, #23390 (@Mugen87)
- Refactor import maps support in live editor. #23373 (@greggman)
- Avoid usage of minimum pixel ratio. #23489 (@Mugen87)
- Remove outdated
OrbitControls.enableKeys
. #23472 (@r00ster91) - Improve Chinese translation. #23501 (@ZacharyQin)
Examples
- Clean up. #23395, #23426, #23485, #23503, #23535 (@Mugen87, @sunag, @WestLangley, @vHeemstra)
- Add vertex colors to
misc_exporter_ply
example. #23375 (@gkjohnson) - Add vertex colors to
misc_exporter_collada
example. #23384 (@gkjohnson) - Allow tree-shaking for curves. #23402 (@marcofugaro)
- Ensure
CCDIKHelper
is exported. #23404 (@abernier) - Rework UI of exporter examples. #23405 (@Mugen87)
- Remove
VRMLoader
. #23414 (@mrdoob) - Remove old node material. #23418, #23454 (@Mugen87)
- Properly set draw range in
webgl_gpgpu_birds_gltf
example. #23435 (@jure) - Fix style issue in
flow
. #23439 (@Mugen87) - Fix
DOMException
when trying to use XR inside an iframe. #23174 (@hybridherbst) - Add multisampling support to
Reflector
/Refractor
. #23444 (@Mugen87) - Add
OctreeHelper
. #23481 (@carlssonk, @Mugen87) - Add
EXRExporter
. #23541 (@sciecode) - Fix GUI in wide line examples. #23540 (@bergden-resonai)
- Move new node material to
./jsm/nodes/
. #23560 (@sunag) - Improve
webgl_cubemap_dynamic
example. 944aeb1be3b6e86170d2707e315d7ce663c96dd9 (@mrdoob)
-
3MFLoader
- Assign names to the created groups and meshes. #23453 (@kovacsv)
-
ColladaExporter
- Convert linear vertex and material colors to sRGB. #23400 (@gkjohnson)
-
ColladaLoader
- Add sRGB support. #23401 (@gkjohnson)
-
CSS2DRenderer
- Fix sorting regression. #23360, #23594 (@bergden-resonai, @Mugen87)
- Add support for
renderOrder
. #23456 (@brucedjones)
-
GLTFExporter
- Always use
image/png
as mime type. #23385 (@donmccurdy) - Fix
buildORMTexture()
. #23463 (@takahirox)
- Always use
-
GLTFLoader
- Allow textures which share the image source. #23420 (@takahirox)
- Fix color space for certain texture types. #23630 (@Mugen87)
-
HTMLMesh
- Render number input values. #23381 (@zz85)
- Observe DOM mutation and support canvas elements. #23386 (@zz85)
-
NodeEditor
- Support to file, textures and updates. #23376 (@sunag)
- Minor improvement. #23425 (@fyoudine)
- Add
NormalMapEditor
and some improvements. #23447 (@sunag) - Add preview. #23508 (@sunag)
-
NodeMaterial
- Add support for serialization/deserialization. #23314 (@sunag)
- Add
analyze()
to optimization and validation. #23475 (@sunag) - Add more functions to
ShaderNode
. #23539 (@LeviPesin) - Add type conversions to
ShaderNode
. #23544 (@LeviPesin)
-
OBJExporter
- Convert vertex colors to sRGB. #23374 (@gkjohnson)
-
OBJLoader
- Convert vertex colors to linear. #23340 (@gkjohnson)
-
PointerLockControls
- Add
.pointerSpeed
. #23516 (@ChrisCrossCrash)
- Add
-
PLYExporter
- Convert vertex colors to sRGB. #23399 (@gkjohnson)
-
PLYLoader
- Convert vertex colors to linear. #23342 (@gkjohnson)
-
SVGLoader
- Recognize style definitions inside
defs
tag. #23533 (@nkrkv)
- Recognize style definitions inside
-
WebGPURenderer
- Remove deprecated WGSL syntax. #23393, #23394 (@webglzhang, @takahirox)
- Fix
Texture.image !== null
inWebGPUTextures
. #23436 (@sunag) - Update to latest WebGPU API. #23483 (@sunag)
Editor
- Clean up. #23477 (@linbingquan)
Tests
- Remove unit tests for example files. #23352 (@Mugen87)
- Remove usage of
Function.caller
. #23412 (@Mugen87) - Update QUnit to solve Windows failure. #23505 (@Mugen87)