r127
版本发布时间: 2021-03-31 19:09:19
mrdoob/three.js最新发布版本:r171(2024-11-29 19:21:30)
https://github.com/mrdoob/three.js/wiki/Migration-Guide#r126--r127 https://github.com/mrdoob/three.js/milestone/40?closed=1
- Core
- More usage of ES6 features. #21407, #21545 (@beginor, @linbingquan)
- Add
test-treeshake
script. #21437 (@marcofugaro) - Remove some deprecated methods. #21450 (@marcofugaro)
- BufferAttribute
- Add
.name
,.usage
,.updateRange
serialization. #21279 (@takahirox)
- Add
- BufferGeometry
- Clarify serialization of buffer attributes. #21464 (@Mugen87)
- EventDispatcher
- Remove target references after event dispatch. #18564 (@aardgoose)
- ImageUtils
- Added warning when saving image as jpg in
getDataURL()
. #21386 (@mrdoob)
- Added warning when saving image as jpg in
- InstancedMesh
- Honor instanceColor in
.toJSON()
andObjectLoader
. #21486, 2f1fa4ea6ba68700a16eabfbc4bc681f929ea089 (@Michael4d45, @mrdoob)
- Honor instanceColor in
- InterleavedBufferAttribute
- Add
applyNormalMatrix()
andtransformDirection()
. #21434 (@devnev)
- Add
- Line/Points
- Avoid raw array access in
.raycast()
. #21475 (@Mugen87) - Support
drawRange
in.raycast()
. #21481 (@Mugen87)
- Avoid raw array access in
- Material
- Add
alphaToCoverage
. #21383 (@Mugen87) - Honor missing properties in
.toJSON()
andMaterialLoader
. #21428 (@frading) - Add vertex color alpha support. #20975, #21530 (@chubei, @mrdoob)
- Add
- MathUtils
- Added
.inverseLerp()
. #21544, #21547 (@Hoodgail, @Mugen87)
- Added
- PointLightShadow
- Use PointLight.distance for far value if set. #21526 (@Mugen87)
- Plane
- Return
null
instead ofundefined
in.intersectLine()
. #21468 (@Mugen87)
- Return
- Quaternion
- Use
Number.EPSILON
in.setFromUnitVectors()
. #21484 (@Mugen87, @WestLangley) - Add
.slerpQuaternions()
, deprecate static.slerp()
. #21532 (@Mugen87)
- Use
- RoughnessMipmapper
- Preserve texture UV transform. #21511 (@zeux)
- Sphere
- Add
.expandByPoint()
and.union()
. #21493 (@Mugen87)
- Add
- SpotLightShadow
- Add missing
.copy()
method. #21527 (@Mugen87)
- Add missing
- WebGLBackground
- Remove support for
WebGLCubeRenderTarget
. #21360 (@Mugen87)
- Remove support for
- WebGLRenderer
- Move invocation of
Scene.onAfterRender()
. #21362 (@Mugen87) - Add support for multiple programs per material. #20135 (@Mugen87)
- Refactor framebuffer state management. #21447, #21442, #21518 (@Mugen87)
- Release cache at the end of
.render()
. #14946 (@takahirox, @Mugen87) - Remove morph target properties. #21522 (@Mugen87)
- Do not run
window.rAF
when in XR. #21529 (@Mugen87)
- Move invocation of
- WebGLShadowMap
- Ensure to use the latest reference to
WebGLObjects
. #21452 (@Mugen87)
- Ensure to use the latest reference to
- WebGLState
- Improve viewport and scissor setup. #21440 (@Mugen87)
- WebGLTextures
- Fix render texture re-uploaded on first use. #21455 (@DavidPeicho)
- WebGLUniforms
- Add unsigned vector array support for uniform. #21316 (@SuperSodaSea)
- WebXRController
- Make
targetRay
available in hands mode. #21368 (@fe1ixz)
- Make
Documentation
- Clean up. #21354, #21408, #21429, #21478, #21491 (@jj-plane, @Mugen87, @mcharytoniuk, @Vyse12138)
- Added
?q=
support. #21460 (@mrdoob) - Call
updateFilter()
only when?q=
is set. #21462 (@mrdoob) - Clarify restrictions of
Texture.offset
andrepeat
. #21473 (@Mugen87) - Started with Japanese translation. #21474 (@na2shell)
- Use
AudioNode
as type forAudio.filters
. #21523 (@Mugen87) - Improved material browser. 5a51f73e7bdf5b89d58af9b12914bbb16602032a, f9a36387326dcb22a2eef2d1946a3a20523c894e, ec5926a7ce8af6124820fc391a7f01296dd6ac6b, e5e3f069abafa0b0823d09307c0d92de036f2610, e93bffad7a138a3b66d47b7dcb6395bdc71ecf0d, 9fb402cfe8a774fa88254d52aa464c16d40873bd, b50ebc8f742e39b721233f491da5abed0c99b306 (@mrdoob)
Examples
- Clean up. #21432, #21449, #21471, #21482, #21499, #21513, #21541, #21549, 160344f3ebdea316ccf9411c88083a12dc1ae077, 024cfe8759d2ecd025d8e7445c65e9d09a57c4e7, 98c06041e28fa1cf7011d5b0a79ef83fd7428173, 795a26d1b35884bbd01b9744dd890e2e74d304b1, 0e8e04305a1d9c47997e6e85773dc6c8be3dc79a, 02f4dff06e26304ce67b98f0777786f3ca9428a6 (@Mugen87, @Dvvarf, @yomboprime, @mrdoob)
- Remove calls of
stopPropagation()
. #21348 (@Mugen87) - Adopt importmaps in WebGPU examples. #21364 (@mrdoob)
- Move type flags back to
prototype
. #21378 (@linbingquan) - Improved
webgl_materials_wireframe
demo. #21389, #21390, #21402, #21410 (@gkjohnson, @Mugen87, @mrdoob, @WestLangley) - Remove alpha option from
webgl_shaders_ocean.html
example. #21393 (@Mugen87) - Bump
MMDParser
lib to the latest one. #21397 (@takahirox) - Better show WebGL2 error messages. #21400 (@Mugen87)
- Removed
misc_legacy
example. #21417 (@mrdoob) - Add
webgl_shadowmap_progressive
example. #21435 (@zalo) - Remove
AssimpLoader
. #21459 (@Mugen87) - Fix color values in
webgl_materials_envmaps_parallax
example. #21363 (@1993heqiang) - Introduced
DebugEnvironment
. 34519f5073c32eca2cf8b571ce03d44a5a80476a (@mrdoob) - More usage of Pointer Events. #21494, #21504 (@Oletus, @Mugen87)
- Fix pixel trails in
webgl_gpgpu_protoplanet
example. #21510 (@yomboprime) - Simplify
webgl2_rendertarget_texture2darray
example. #21520 (@Mugen87) - Replace
Event.keyCode
withEvent.code
. #21409 (@puxiao) - Add post processing fullscreen triangle optimization. #21358 (@trinketmage)
-
CSS2DRenderer
- Round values used for translation (Safari-only). #21416 (@simondate)
-
DeviceOrientationControls
- Add
isSecureContext
check. #21528 (@Mugen87, @mrdoob)
- Add
-
DragControls
- Ensure
hoveroff
is fired correctly. #21376 (@tb2k)
- Ensure
-
FunctionNode
- Improve regex. #21356 (@Mugen87)
-
IFCLoader
- Added new loader. #20598 (@agviegas)
-
Line2
- Add support for Alpha To Coverage. #21451 (@gkjohnson)
-
LineSegments2
- Check bounding box and bounding sphere when raycasting. #21496 (@gkjohnson)
-
LUTPass
- Fix usage with WebGL1. #21531 (@gkjohnson)
-
MMDLoader
- Improve animation system for PMX. #21395, #21398 (@takahirox, @ingbunga)
-
OutlinePass
- Ensure
renderTargetDepthBuffer
is resized correctly. #21436 (@Julianouyang)
- Ensure
-
ReflectorForSSRPass
- Fixed feedback and improved robustness. #21385 (@ycw)
- Expose
color
. #21506 (@ycw)
-
SSRPass
- Fixed
MAX_STEP
. #21384 (@ycw) - Correct reflector depth. #21403, #21537 (@gonnavis)
- Fixed
-
SSRrPass
- Add new pass for screen space refraction. #21420 (@gonnavis)
-
SVGLoader
- Apply default values when using
getAttribute()
. #21469 (@Mugen87) - Implement custom
createShapes()
method. #21380 (@Ttommeke) - Fix parsing of flags in compressed definitions. #21485 (@Mugen87)
- Apply default values when using
-
TGALoader
- Derive from
DataTextureLoader
. #21377 (@deepkolos)
- Derive from
-
Water
- Removed
outputEncoding
andtoneMapping
checks. #21418 (@mrdoob)
- Removed
-
WebGPURenderer
- Clean up. #21367 (@Mugen87)
- Update
.requestDevice()
descriptor to the latest API. #21366 (@Mugen87) - Update to latest vertex formats. #21381 (@Mugen87)
- Fix rendering of line segments. #21443 (@Mugen87)
- Follow the latest
GPURenderPipelineDescriptor
format. #21472 (@takahirox)
Editor
- Clean up. c45fd2036cce74c24ed31c1d907f888e01050fb6 (@mrdoob)
- Improved Chinese translation. #21374 (@linbingquan)
- Improved i18n. #21454 (@1993heqiang)
- Fixed
size
andsizeAttenuation
UI visibility handling. #21422 (@mrdoob) - Improved ShaderMaterial panel. #21423 (@mrdoob)
- Fixed grid depth glitches. #21430 (@mrdoob)
- Changed ffmpeg video quality setting. 3e79ce410e9b9dd219a2b2a4dd85ffc7c8ffb504 (@mrdoob)
- Reset time in
app.js
’s.start
() function. e4c5838786df988d13a3d3b44559c92e68b9f14f (@mrdoob) - Added modelviewer environment. b2dde2945663dadbeee2e3e64f17ebd6c73a8eee (@mrdoob)
- Added
XRControllerModelFactory
tosw.js
. 84c4a6dcb417f2562c4597ea687f4cd342d884d1 (@mrdoob) - Improved video progress bar. 27def9d26a56e80fd3cb2739598e9716bab123b0 (@mrdoob)
- Implement cache per update. 412b99a7f26e117ea97f40eb53d010ab81aa3279 (@mrdoob)
- Removed
3*
extensions fromLoader
. ca5f932340864a73918edc6d85410c24e26a070f (@mrdoob) - Added IFC files support. #21551 (@mrdoob)
Tests
- Add unit test for
Mesh.raycast()
. #21399 (@Mugen87)