r167
版本发布时间: 2024-07-25 16:17:08
mrdoob/three.js最新发布版本:r170(2024-10-31 15:07:49)
https://github.com/mrdoob/three.js/wiki/Migration-Guide#r166--r167 https://github.com/mrdoob/three.js/milestone/80?closed=1
- Global
- Add
three.webgpu.js
andthree.webgpu.min.js
builds. #28650, #28769 (@sunag) - Fix code style. #28888, #28891, #28899, #28907 (@linbingquan, @Mugen87, @sunag, @aardgoose)
- Add
- BatchedMesh
- Correctly clone data textures. #28805 (@lanvada)
- Box2, Box3
- Escape ternary condition in
containsPoint()
andintersectsBox()
. #28871, #28872 (@satelllte)
- Escape ternary condition in
- BloomNode
- Add FX class for Unreal bloom. #28903 (@Mugen87)
- ColorAdjustmentNode
- Correct
lumaCoeffs
. #28861 (@Mugen87)
- Correct
- ColorManagement
- Add
getLuminanceCoefficients()
. #28880 (@donmccurdy)
- Add
- CubeTextureNode
- Support
CubeRefractionMapping
. #28823, #28935 (@Mugen87, @sunag)
- Support
- DepthOfFieldNode
- Update API and and example. #28772 (@sunag)
- DenoiseNode
- Add FX class for applying poisson denoise. #28879, #28882, #28886 (@Mugen87)
- DotScreenNode
- Fix
updateBefore()
. #28885 (@Mugen87)
- Fix
- FilmNode
- Add FX class for film grain effects. #28770 (@Mugen87)
- FXAANode
- Add FX class for Fast approximate anti-aliasing. #28859 (@Mugen87)
- GLSLNodeBuilder
- Remove
Int16Array
check fromgetTypeFromAttribute()
. #28920 (@Mugen87)
- Remove
- GTAONode
- Add FX class for Ground Truth Ambient Occlusion. #28844, #28851, #28852, #28883 (@Mugen87)
- InstancedMesh
- Add initial value to
setColorAt()
method. #28854 (@lanvada)
- Add initial value to
- LightingModel
- Refactor indirect lighting. #28824 (@sunag)
- Lut3DNode.
- Add FX class for using 3D LUTs for color grading. #28779 (@Mugen87)
- MathNode
- Add
rand()
. #28765 (@Mugen87)
- Add
- Matrix2
- Add new class. #28923 (@gkjohnson)
- MeshBasicNodeMaterial
- Add
envMap
support. #28795, #28798 (@Mugen87, @sunag) - Add
lightMap
support. #28821 (@Mugen87) - Fix
transformedNormalView
. #28839 (@Mugen87)
- Add
- MRTNode
- Remove array support and add
getNode()
. #28914 (@sunag)
- Remove array support and add
- NodeMaterial
- Fix
envMap
for lambert and phong. #28812 (@Mugen87) - Honor
lightMapIntensity
. #28814 (@Mugen87) - Honor
aoMapIntensity
. #28817 (@Mugen87) - Honor
ambientOcclusion
in basic, lambert, phong and toon. #28819, #28822 (@Mugen87) - Honor
emissiveIntensity
. #28924 (@Mugen87) - Add
setupOutgoingLight()
. #28941 (@Mugen87)
- Fix
- Nodes
- Add missing export. #28760 (@RenaudRohlinger)
- Fix serialization/deserialization. #28944, #28946 (@Mugen87)
- ObjectLoader
- Add missing call in
parseAsync()
. #28777 (@Mugen87)
- Add missing call in
- PixelationNode
- Add FX class for pixelation effects. #28802 (@cmhhelgeson)
- PostProcessing
- Introduce
renderOutput()
. #28781 (@sunag) - Add MSAA support. #28784 (@RenaudRohlinger)
- Share context between RTT. #28811 (@sunag)
- Auto-MRT. #28833 (@sunag)
- Add missing
dispose()
methods in effects. #28892 (@Mugen87) - Honor pixel ratio in effects. #28895 (@Mugen87)
- Cache linear depth and
viewZ
of depth textures inPassNode
. #28922 (@cmhhelgeson)
- Introduce
- Renderer
- Move
quad
out of module scope. #28800 (@Mugen87) - Use output color space conversion only when rendering to screen. #28909 (@Mugen87)
- Move
- RGBShiftNode
- Clean up. #28764 (@Mugen87)
- RTTNode
- Introduce
node.toTexture()
andrtt()
. #28773, #28778 (@sunag, @Mugen87)
- Introduce
- ScriptableNode
- Fix
getCacheKey()
. #28964 (@sunag)
- Fix
- Shaders
- Improve packing. #28789 (@WestLangley)
- TextureNode
- Add
biasNode
. #28786, #28787, #28792 (@Mugen87, @sunag, @RenaudRohlinger) - Fix texture matrix reference. #28801 (@sunag)
- Rename
_matrixValue
to_matrixUniform
. #28809 (@sunag)
- Add
- TransitionNode
- Add FX class for scene transitions. #28847 (@cmhhelgeson)
- TSL
- Add matrix conversion. #28890 (@z4122)
- Add missing types in
wgslFn
. #28928 (@sunag)
- WebGLRenderer
- Revert the removal of redundant clear in transmission pass. #28806 (@Mugen87)
- Use
warnOnce()
for deprecation log. #28904 (@davcri) - Support
GLBufferAttribute
withInterleavedBufferAttribute
. #28956 (@nkallen)
- WebGLUniformsGroups
- Fix buffer offset calculation. #28834 (@Mugen87)
- WebGPUBindingUtils
- Define sampleType for all data textures consistently. #28940 (@Mugen87)
- WebGPURenderer
-
BatchMesh
support for instanced rendering with sorting, frustum culling. #28753 (@RenaudRohlinger) - Fix individual bind group cache. #28790 (@sunag)
- Extend max workgroups capabilities. #28846 (@RenaudRohlinger)
- Fix calculation of
instanceIndex
in compute shaders. #28865 (@RenaudRohlinger) - Fix shadows on objects with
receiveShadow=false
. #28874 (@RenaudRohlinger) - Correct shadows on material rebuilding. #28889 (@aardgoose)
- Fix edge case when video data is unavailable. #28894 (@aardgoose)
- Remove deprecated
Node.construct()
method. #28902 (@aardgoose) - Introduce
renderer.transparent
andrenderer.opaque
. #28900 (@sunag) - Add enable Directive, enable extension support. #28615 (@cmhhelgeson)
- Add background names. #28911 (@sunag)
- Fix render target dispose and MRT. #28912 (@sunag)
- Align integer attribute check of WebGL backend. #28918 (@Mugen87)
- Instance mesh use binding group instead of attribute. #28726 (@z4122)
- Add
PCFShadowMap
support. #28926 (@Mugen87, @sunag) - Support to dynamic
light.castShadow
. #28945 (@sunag)
-
Documentation
- Remove redundant definitions. #28860 (@Mugen87)
- Expand
aoMapIntensity
description. #28917 (@donmccurdy)
Examples
- Clean up. #28808, #28832, #28864, #28925, #28929, #28943 (@tomhsiao1260, @WestLangley, @Mugen87, @Methuselah96)
- Add
webgpu_refraction
example. #28761, #28766 (@Mugen87, @RenaudRohlinger) - Restore look of particle snow demo. #28799 (@Mugen87)
- Improve the slider in the wide gamut example. #28810 (@WestLangley)
- Fix wrong color space in
webgpu_equirectangular
example. #28828 (@Mugen87) - Scroll to currently selected example in the sidebar. #28837 (@aardgoose)
- Update exports in
Addons
. #28916 (@Methuselah96) - Add
webgpu_tsl_galaxy
example. #28955 (@brunosimon)
Addons
-
GLTFExporter
- Set
willReadFrequently
totrue
when using Canvas 2d. #28893 (@myznikovgleb) - Remove unnecessary early return. #28938 (@POPOBE97)
- Set
-
SimplifyModifier
- Fix missing import. #28763 (@yfunk)
-
SSAOPass
- Fix debug output. #28762 (@Mugen87)
-
Transpiler
- Fix
shader_toy
example and updatethree/tsl
import. #28788 (@sunag)
- Fix
-
UltraHDRLoader
- Add new loader for loading UltraHDR textures. #28825, #28845, #28932 (@mjurczyk, @Methuselah96)
-
VTKLoader
- Add support for
AppendedData
. #28816 (@Mt-Youya)
- Add support for