r171
版本发布时间: 2024-11-29 19:21:30
mrdoob/three.js最新发布版本:r171(2024-11-29 19:21:30)
https://github.com/mrdoob/three.js/wiki/Migration-Guide#r170--r171 https://github.com/mrdoob/three.js/milestone/84?closed=1
- Global
- Codesplit WebGL/WebGPU entrypoints. #29404, #29644 (@CodyJasonBennett, @RenaudRohlinger)
- Introduce
three.tsl.js
. #29948 (@sunag) - Improve import style of
MathUtils
. #29943 (@WestLangley)
- AnalyticLightNode
- Reset
shadowNode
after dispose. #29939 (@sunag)
- Reset
- Audio
- Ensure progress is reset in
onEnded()
. #29930 (@Jian-Nam) - Override
copy()
andclone()
to include missing properties. #2996 (@Byongho96)
- Ensure progress is reset in
- BatchedMesh
- Better error handling. #29790 (@Makio64)
- BlendModes
- Added
blend*
prefix. #29897 (@sunag)
- Added
- BufferGeometry
- Fix
setFromPoints()
when updating with smaller point sets. #29956 (@rotu)
- Fix
- ColorManagement
- Support treeshaking. #29816 (@linbingquan)
- GLSLNodeBuilder
- Fix color space regression. #29945 (@Mugen87)
- Fix varying
color
type. #29950 (@sunag)
- Line2NodeMaterial
- Fix broken dash. #29835 (@Mugen87)
- Add opacity support using backdrop. #29979 (@sunag)
- Materials
- Revert static types of builtins materials. #29789 (@RenaudRohlinger)
- NodeMaterial
- Only call
setupDepth()
with active depth buffer. #29799 (@Mugen87) - Add
.castShadowNode
and.receivedShadowNode
. #29840 (@sunag) - Fix
getAlphaHashThreshold()
properties conflict. #29977 (@sunag)
- Only call
- PMREMGenerator
- Add
fromSceneAsync()
. #29951 (@sunag) - Add optional renderTarget in
fromScene()
. #29959 (@sunag)
- Add
- PostProcessing
- Fix
PostProcessingUtils
import. #29801 (@Mugen87) - Harmonize node type. #29823 (@Mugen87)
- Fix
- Renderer
- Fix
getShaderAsync()
. #29832 (@Mugen87) - Add
hasInitialized()
. #29937 (@Mugen87) - Add
initTexture()
. #29947 (@Mugen87)
- Fix
- RenderObjects
- Force update if geometry has changed. #29807, #29836, #29873 (@sunag)
- Spherical
- Use
MathUtils.clamp()
formakeSafe()
. #29824 (@linbingquan)
- Use
- TSL
- Add
shadows
. #29838 (@sunag) - Introduce
instance()
for custom use #29911 (@sunag) - Introduce
attributeArray()
andinstancedArray()
. #29881 (@sunag) - Return
pass()
texture if available inconvertToTexture()
. #29957 (@sunag) - Deprecated
storageObject()
. #29982 (@sunag)
- Add
- Vector2/3/4
- Use
MathUtils.clamp()
internally. #29812, #29929 (@satelllte, @mrdoob)
- Use
- WebGLBackground
- Add
dispose()
. #29858 (@Mugen87)
- Add
- WebGLGeometries
- Don't upload morph target attributes. #29915 (@mrxz)
- WebGLRenderer
- Add support for copying mipmap data between textures. #29769 (@gkjohnson)
- WebGPUAttributeUtils
- Fix
updateAttribute()
when using range. #29967 (@holtsetio)
- Fix
- WebGPUBackend
- Simplify Timestamp Queries and ensure work done. #29970 (@RenaudRohlinger)
- WebGPURenderer
- Make sure default instance of
CompressedTexture
works. #29788 (@Mugen87) - Implement
ClippingGroup
object. #28237, #29833 (@aardgoose) - Make
Animation
WebXR compatible. #29783 (@Mugen87) - Hardware clipping support. #28578 (@aardgoose)
- Added support for
.wrap*
usingbiquadraticTexture
. #29828, #29846 (@sunag) - Handle
OutOfMemory
in timestamp tracking. #29857 (@RenaudRohlinger) - Fix
OffscreenCanvas
support in WebGL. #29867 (@RenaudRohlinger) - Per "texture set" bindGroup caching. #29845 (@aardgoose)
- Logarithmic Depth Buffer rename/revision. #29870 (@PoseidonEnergy)
- Fix
ImageBitmap
flip inWebGLBackend
. #29866 (@RenaudRohlinger, @sunag) - Fix
shadowPositionNode
cache. #29921 (@sunag) - Add
PointShadowNode
. #29849 (@sunag) - Fix globals usage to improve node support. #29919 (@whatisor)
- Fix integer uniforms. #29976 (@holtsetio)
- Fix viewport/scissor after
copyFramebufferToTexture()
. #29978 (@sunag) - Add
SpotLight.map
support. #29989 (@sunag) - Shadow fixes. #29991 (@sunag)
- Add missing export
NodeAccess
. #29993 (@RenaudRohlinger) - Add video and storage 2D Texture
textureLoad()
support. #29992 (@RenaudRohlinger)
- Make sure default instance of
- WebGPUTextureUtils
- Fix
dispose()
ofVideoTexture
. #29944 (@Mugen87)
- Fix
- WGSLNodeBuilder
- Improve
NearestFilter
support. #29910 (@sunag)
- Improve
Documentation
- Improve
BatchedMesh
page. #29803 (@s-rigaud) - Improve
Clock
page. #29805 (@s-rigaud) - Improve
GLTFExporter
page. #29809 (@Mugen87) - Improve
Renderer
page. #29804 (@s-rigaud) - Fix typo in loader pages. #29848 (@satelllte)
- Improve French translation. #29901, #29902 (@satelllte)
- Improve Korean translation. #29885, #29918 (@mmjinglin163)
Manual
- Fix
loaderArrayLoadRE
regex to allow spaces before square bracket. #29820 (@mrxz)
Examples
- Clean up. #29792, #29877, #29932, #29936, #29972 (@linbingquan, @Mugen87)
- Improve DOM building in
index.html
. #29791 (@linbingquan) - Improve
webgpu_postprocessing_ao
example. #29843 (@Mugen87) - Improve
webgpu_postprocessing_ssr
example. #29878 (@Mugen87) - Improve
webgpu_postprocessing_sobel
example. #29934 (@Mugen87) - Fix loader config in
webgl_renderer_pathtracer
. #29987 (@Zelif)
Addons
-
ArcballControls
- Add
enableFocus
. #29871 (@kxxhan)
- Add
-
CSMShadowNode
- Remove name collision. #29811 (@Mugen87)
-
DecalGeometry
- Add default parameters. #29868 (@Mugen87)
-
GTAONode
- Add
resolutionScale
. #29826 (@Mugen87)
- Add
-
KTX2Loader
- Fix
minFilter
default for untranscoded compressed textures. #29904 (@donmccurdy)
- Fix
-
LineGeometry
- Override
setFromPoints()
. #29681 (@felixwri)
- Override
-
OrbitControl
- Fixed rotation toggle in
KeyDown
handler. #29834 (@i3ene, @Mugen87)
- Fixed rotation toggle in
-
PointerLockControls
- Remove vendor prefixes for
MouseEvent.movement
props. #29802 (@satelllte)
- Remove vendor prefixes for
-
SceneOptimizer
- Fix
toBatchedMesh()
materials. #29935 (@AlaricBaraou)
- Fix
-
SSRNode
- Add temporary fix for Chrome. #29875 (@Mugen87)
- Support logarithmic depth. #29941 (@Mugen87)
-
StereoCompositePassNode
- Fix state reset/restore. #29806 (@Mugen87)
-
TiledLightsNode
- Fix reflectedLight declaration sequence. #29874 (@sunag)
-
TSL Transpiler
- Adding various fixes. #29958 (@sunag)
-
UVsDebug
- Clean up. #29794 (@linbingquan)
-
WebGPU
- Remove
GPUShaderStage
hack. #29933 (@Mugen87) - Fix navigator usage. #29965 (@Mugen87)
- Remove
Tests
- Use absolute delta value when comparing against tolerance. #29946 (@mrxz)