r165
版本发布时间: 2024-05-31 19:03:22
mrdoob/three.js最新发布版本:r170(2024-10-31 15:07:49)
https://github.com/mrdoob/three.js/wiki/Migration-Guide#r164--r165 https://github.com/mrdoob/three.js/milestone/78?closed=1
- Global
- Add eslint to renovate bot's denylist. #28356 (@donmccurdy)
- BatchedMesh
- Add
getColorAt()
andsetColorAt()
. #28255, #28417, #28416 (@Kikedao, @aardgoose, @gkjohnson) - Fix radix sort stability. #28401 (@gkjohnson)
- Add
- DepthTexture
- Use ES6 default parameters. #28367 (@linbingquan)
- Update depth + stencil textures to work with multi sample RTT, make formats consistent. #28460 (@gkjohnson)
- FileLoader
- Make sure all network errors are catched in
load()
. #28216 (@ycw)
- Make sure all network errors are catched in
- KeyframeTrack
- Improve docs and subtype ctors. #28288 (@trusktr)
- LoaderUtils
- Deprecate
decodeText()
. #28278 (@ycw)
- Deprecate
- Raycaster
- Add ability to stop propagation. #27709, #28520 (@AlaricBaraou, @mrdoob)
- Texture
- Add
layerUpdates
in array textures. #27972 (@HunterLarco)
- Add
- WebGLExtensions
- Use
warnOnce()
to report unsupported extensions. #28242 (@vanruesc)
- Use
- WebGLRenderer
- Add
readRenderTargetPixelsAsync()
. #28291 (@gkjohnson) - Enable subframe upload in
copyTextureToTexture()
, align API to 3d version. #28281 (@gkjohnson) - Add
initRenderTarget()
. #28285, #28308 (@gkjohnson) - Simplify morph target code. #28388 (@Mugen87)
- Fix incorrect background color space when setting
Scene.background
to color. #28434, #28447 (@gkjohnson, @Mugen87) - Ensure correct clear after transmission. #28445, #28446 (@Mugen87)
- Remove deprecated
useLegacyLights
. #28482 (@aardgoose) - Fix WebXR depth sensing. #28530 (@cabanier)
- Add
Documentation
- Improve
SceneUtils
page. #28234 (@Mugen87) - Improve
Creating a scene
guide. #28269 (@Mugen87) - Improve
InstancedMesh
page. #28415 (@finnbear) - Improve
WebGLRenderer
page. #28307, #28478 (@Mugen87, @sundaramseth) - Add
EdgeSplitModifier
page. #28516 (@JaimeTorrealba) - Add
Sky
page. #28529 (@JaimeTorrealba) - Improve Chinese translation. #28528 (@leedom92)
Examples
- Clean up. #28419, #28476 (@Methuselah96)
- Remove unused render pass in
examples/webgpu_multiple_rendertargets_readback
example. #28219 (@aardgoose) - More usage of
setAnimationLoop()
. #28236, #28241, #28250, #28257 (@Mugen87) - Update dependencies in
webgl_renderer_pathtracer
example. #28233, #28279 (@gkjohnson) - Fix WebGPU logarithmic depth buffer demo. #28249 (@Mugen87)
- Remove need for manually assigning
Line2
material resolution. #28343 (@gkjohnson) - Upgrade tween.module.js to
23.1.2
. #28391 (@linbingquan) - Sort
webgpu_*
alphabetically and renamedwebgl2_*
towebgl_*
. 1603f769f08bbff3cc875e074dc3f1e3b8022252 (@mrdoob) - Improve
webgpu_lights_custom
example. f0f0e195e16490dac58520cdae23a9feee7547f5 (@mrdoob)
-
BufferGeometryUtils
- Fix
mergeVertices()
to handle morph attributes. #28441 (@catalin-enache)
- Fix
-
CSS2DRenderer
- Ensure
Object3D.visible
is correctly evaluated in object hierarchies. #28293, #28330, #28393 (@lafflan)
- Ensure
-
CSS3DRenderer
- Ensure
Object3D.visible
is correctly evaluated in object hierarchies. #28293, #28393 (@lafflan)
- Ensure
-
CurveModifier
- Use
LinearFilter
for spline texture. #28375 (@manthrax) - Switch to half float. #28377 (@Mugen87)
- Use
-
DRACOLoader
- Fix "onError doesn't propagate" when parsing file. #28383 (@ycw)
-
FBXLoader
- Fixed morph attributes to match base geometry length. #28397 (@catalin-enache)
-
GLTFLoader
- Assign extras to texture. #28226 (@harrycollin)
-
GPUStatsPanel
- Remove the query upon completion. #28428 (@Nmzik)
-
LDrawLoader:
- Accept
onError
callback inparse()
. #28382 (@ycw)
- Accept
-
MMDLoader
- Detect model extension from file content. #28266 (@YusakuNo1)
-
NodeBuilder
- Clean up. #28506, #28508(@Methuselah96)
-
RenderPass
- Make the render background get the correct alpha. #28459 (@zhaocaho)
-
SortUtils
- Fix termination condition & enforce unsigned value. #28411 (@sciecode)
-
TransformControls
- Make events more coherent. #28256 (@s-rigaud)
-
TSL
- Adding
toType()
conversion. #28344 (@sunag) -
AttributeNode
.defaultNode
asdefaultValue
. #28406 (@sunag) -
VaryingNode
support forsetup()
. #28407 (@sunag) - Improve tree shaking using TSL in node classes. #28408, #28410, #28422, #28510, #28511 (@sunag)
- Fix
tslFn()
output type called before build. #28409 (@sunag) - Introduce
modelWorldMatrixInverse
. #28433 (@sunag) - Node - Introduce
getElementType()
. #28437 (@sunag) - Fix Math/Operators fail generate cache with same node. #28502 (@sunag)
- Introduce
.toGlobal
. #28503 (@sunag) - Fix twice flow node in
VaryingNode
. #28504 (@sunag) - Analyze lights and auto generate cache. #28509 (@sunag)
- Adding
-
USDZExporter
- Make including anchoring properties optional. #28363 (@vincentfretin)
-
ViewHelper
- Simplified and prettified. #28312 (@mrdoob)
-
WebGPURenderer
- Implement displacement map for materials. #28246 (@aardgoose)
- Add
MeshMatcapNodeMaterial
. #28259, #28274 (@aardgoose, @sunag) - Update sampler bindings on texture change. #28268 (@aardgoose)
- Add
MeshToonNodeMaterial
. #28235 (@aardgoose) - Don't share
normalViewMatrix
between render passes. #28283 (@aardgoose) - Add
copyTextureToTexture()
subframe upload and new API. #28315 (@RenaudRohlinger) - Update
copyFramebufferToTexture()
function signature. #28329 (@RenaudRohlinger) -
NodeMaterial
extendsMaterial
. #28313 (@sunag) - Export
texturePass
node. #28359 (@RenaudRohlinger) - Update viewport node on RENDER. #28370 (@aardgoose)
- Add temporary fix for texture binding. #28402 (@RenaudRohlinger)
- Fix tone mapping in
AfterImageNode
. #28442 (@RenaudRohlinger) - Introduce dispersion. #28439 (@sunag)
- Support using 3d textures in shaders with
texture3d()
and addVolumeNodeMaterial
and examples. #28418 (@aardgoose) - Fix shadow layers. #28451 (@sunag)
- Remove deprecated method
getArrayBuffer()
. #28481 (@aardgoose) - Export
texture3D()
. #28484 (@RenaudRohlinger) - Handle more internal formats for textures. #28483 (@RenaudRohlinger)
- Fix custom blending. #28490 (@RenaudRohlinger)
- Clean up
ChainMap
. #28492 (@Methuselah96) - Clean up
Uniform
. #28500 (@Methuselah96) - Clean up
Pipelines
. #28495 (@Methuselah96) - Avoid object creation in
PassNode.updateBefore()
. #28505 (@aardgoose) - Fix
clearcoatRoughness
. #28507 (@sunag) - Fix rendering to depth textures with multiple color attachments. #28523 (@aardgoose)
- Apply color space/tone mapping if required in
clear()
. #28521 (@aardgoose) - Read only and read/write storage textures. #28455 (@cmhhelgeson)
Test
- Fix E2E tests. #28323, #28403 (@Mugen87)
Editor
- Update path tracer to latest version. #28239, #28280 (@gkjohnson, @ycw)
- Use precise transaction mode. #28243 (@ycw)
- Fix viewport penetrates tabbed panel issue. #28244 (@ycw)
- Fix unreadable text in viewport. #28253 (@ycw)
- Fix ghost background and environment issue in a New-ed app. #28251 (@ycw)
- Fix outliner's low contrast issue in dark theme. #28248 (@ycw)
- Fix units ignore plural rules issue. #28245 (@ycw)
- Initialize UIs in user preferred language on the first run. #28254 (@ycw)
- Fix ESlint problems. #28261 (@ycw)
- Fix non-localized prompt messages. #28260 (@ycw)
- Not pollute Number's prototype. #28262 (@ycw)
- Add dedicated
.eslintrc.json
. #28271 (@ycw) - Fix
type
inSetMaterialVectorCommand
. #28276 (@ycw) - Use
FullScreenQuad
forUITexture
. #28273 (@linbingquan) - Fix non-localized history entries. #28275 (@ycw)
- Fix object changes out-of-sync with outliner options. #28270 (@ycw)
- Fix ghost viewport camera. #28277 (@ycw)
- Fix viewport camera selector out of sync. #28297 (@ycw)
- Set cursor to not-allowed for inactive menubar options. #28298 (@ycw)
- Fixed missing unit in background rotation control. #28299 (@ycw)
- Tidy up, no
keyCode
,createEvent
andsubstr
. #28304, #28305, #28303 (@ycw) - Fix uncaught exception with invalid environment/background setting. #28300 (@ycw)
- Fix camera name is always 'Camera' when recovering from indexedDB. #28309 (@ycw)
- Added submenu navigation. #28311, #28316, #28325, #28352, #28384, 9f81b724089ceb058522b0b2f92b1668225ce496, cc9a249ba13b031e92fb12d318dd9c20edb2a48d, c857c1eb6c7bea0d8667d6c742d50550d94cae84, cf29a58617a0d5e2f068ed9918dc542e8c0ab702, 346814524d163119af2473a399c9b7f864c9f604, 65c4c2704ad9382f4788d771595ec6446cad28f9, c5ae3486bf678693988bb0e7bc2c4e02f18eb671, b2e138925361814fa9ec8e3fffbf4cfaab74c1ab, 97fcd3c2491693bf1549b0846e49eb9cb9cfcaf5 (@ycw, @mrdoob)
- Fix assets lost when importing zipped OBJ/MTL. #28292 (@ycw)
- Fix gizmo not update when switching local/global space. #28317 (@ycw)
- Fix selected object unselected when recovering. #28318 (@ycw)
- Hide irrelevant tabs for better UX. #28287 (@ycw)
- Fix Undo/Redo are both active when history is empty. #28332 (@ycw)
- Fixed missing export of
SetMaterialRangeCommand
. #28338 (@ycw) - Set filename for SVG files. #28340, #28368 (@linbingquan, @ycw)
- Fix camera UUID lost when recovering. #28337 (@ycw)
- Fix TODO: Bind lexical this. #28357 (@ycw)
- Fix persistent history. #28361, #28405 (@ycw, @Mugen87)
- Export JSON = Download. #28221 (@ycw)
- Remove useless service worker asset. #28371 (@linbingquan)
- Remove useless question mark. #28374 (@linbingquan)
- Fix
Sidebar.Geometry.ExtrudeGeometry.js
. #28373 (@linbingquan) - Added Save and Open. #28351 (@ycw)
- Avoid
SetSceneCommnd
when importing file. #28339 (@ycw) - Visualize the resizer. #28264 (@ycw)
- Fix wrong camera aspect ratio when window resized for REALISTIC shading. #28412 (@ycw)
- Fix script editor title out-of-sync. #28413 (@ycw)
- Submenu title should ignore active state. #28424 (@ycw)
- Fix unhandled material array when exporting JSON. #28431 (@ycw)
- Fix wrong aspect ratio for non default cameras on window resize. #28425, #28443 (@ycw, @Mugen87)
- Makes all shadings modes honor the viewport camera. #28426 (@ycw)
- Fixed wrong script title when editing shader. #28444 (@ycw)
- Added REALISTIC shading support for image rendering. #28448 (@ycw)
- Added appearance submenu. #28421 (@ycw)
- Added samples info for REALISTIC shading. #28432, #28486 (@ycw)
- Prettified shortcuts. #28466, #28472 (@mrdoob, @ycw)
- Improve translation. #28294, #28471, #28470, #28473 (@ycw)
- Fixed sidebar glitch via h scrollable. #28467, #28479, #28491 (@ycw)
- Added User Data input in GEOMETRY tab. #28489 (@ycw)
- Supports video rendering termination. #28475 (@ycw)
- Fixed bouncy view in sidebar caused by
scrollIntoView()
. #28485 (@ycw) - Uses proper units for geometries. #28496, #28497 (@ycw)
- Ensures that video dimensions are divisible by 2 (requirement of libx264). #28498 (@ycw)
- Shows status in popup when rendering video. #28499 (@ycw)
- Revokes video url on popup
window
unload. #28513 (@ycw) - Update ffmpeg to
0.11.6
. 936402ce754a79cf379e5ae1910618212463116e (@mrdoob) - Use
jsdelivr
for ffmpeg. 9d6f51c7f0614210a1e1cd04a62c395ca965dcd4 (@mrdoob) - Copy values when converting from standard material to physical. #28526 (@mrdoob)