r132
版本发布时间: 2021-08-27 18:36:59
mrdoob/three.js最新发布版本:r170(2024-10-31 15:07:49)
https://github.com/mrdoob/three.js/wiki/Migration-Guide#r131--r132 https://github.com/mrdoob/three.js/milestone/45?closed=1
- BufferGeometry
- Remove
computeFaceNormals()
stub. #22366, 0e2a67b7c9b803a23d09199d866fc0a797a6a866 (@Mugen87, @mrdoob)
- Remove
- EdgesGeometry
- Revert removal of rounding from hash computation. (@Mugen87)
- Lights
- Add
power()
getter/setters. #22298 (@WestLangley)
- Add
- MeshLambertMaterial
- Honor
physicallyCorrectLights
when using a light map. #22397 (@WestLangley)
- Honor
- MeshMatcapMaterial
- Add support for vertex tangents. #22248 (@WestLangley)
- MeshNormalMaterial
- Rename vertex and fragment shaders. #22277 (@WestLangley)
- MeshPhongMaterial
- Added vertex tangent support. #22264 (@WestLangley)
- MeshPhysicalMaterial
- Promote
ior
to a material property. #22238 (@WestLangley) - Move transmission uniforms into shader chunk. #22278 (@WestLangley)
- Remove duplicated varying. #22279 (@WestLangley)
- Support specular attenuation of environment maps. #22319 (@WestLangley)
- Fix double application of transmission factor. #22331 (@WestLangley)
- Properly compute specular attenuation of transmission. #22336 (@WestLangley)
- Rename
.sheen
to.sheenTint
. #22381, #22385 (@WestLangley) - Improve clearcoat energy conservation. #22389 (@WestLangley)
- Update version for certain transmission changes. #22379, #22443 (@Mugen87, @mrdoob)
- Promote
- MeshStandardMaterial
- Remove roughness-dependent Fresnel from environment lighting. #22308 (@WestLangley)
- PMREMGenerator
- Clean up. #22274 (@Mugen87)
- Correctly reset the background. #22311 (@gkjohnson)
- Remove calls of
convertSRGBToLinear()
. #22318 (@Mugen87) - Remove extra conversion to RGBE color. #22327 (@gkjohnson)
- Properly dispose of background material. #22338 (@WestLangley)
- PropertyBinding
- Fix
_getValue_direct()
. #22290 (@Mugen87)
- Fix
- WebGLCubeUVMaps
- Fix
onTextureDispose()
. #22386 (@OndrejSpanel)
- Fix
- WebGLMaterials
- Only update transmission uniforms when
material.transmission
> 0. #22427 (@mrdoob)
- Only update transmission uniforms when
- WebGLProgram
- Improved console error. #22307 (@mrdoob)
- Fix transmission checks. #22377, #22387 (@Mugen87, @OndrejSpanel)
- WebGLRenderer
- Clean up shaders and better naming conventions. #22234, #22263, #22288, #22296, #22313, #22361, #22363, #22367, #22372, #22373, #22374, #22375, #22391, #22415 (@WestLangley)
- Simplify envmap encoding logic. #22233 (@WestLangley)
- Removed unused
MAXIMUM_SPECULAR_COEFFICIENT
constant. #22240, #22250 (@mrdoob, @sunag) - Added new shader chunks for tangent support. #22269, #22271 (@WestLangley)
- Fixed transmission shader crash in WebGL1 and no
EXT_shader_texture_lod
. #22309 (@mrdoob) - Update the Schlick formula signature. #22316 (@WestLangley)
- Add uv transform support for transmission and thickness maps. #22364 (@zeux)
- Enable mat2/3/4 attribute in shader. #16141 (@takahirox)
- Remove artist-friendly factor of PI from shaders. #22393 (@WestLangley)
- Reset current material in
.setRenderTarget()
. #22395 (@Mugen87, @takahirox) - Only use
clearcoat
chunks when clearcoat > 0. #22405 (@mrdoob) - Turn
alphaTest
into a uniform. #22409 (@mrdoob) - Ignore alpha in
output_fragment
when usingNoBlending
. #22424 (@mrdoob) - Refactored render loop and fix transmission in VR. #22426 (@mrdoob)
- Add support for GLTF opaque alpha_mode. #22428 (@mrdoob)
- Added transmission alpha support. #22425 (@mrdoob)
- WebGLRenderTarget
- Ensure
internalFormat
is set on texture. #22344, 814b851d835c1d5c3356a8c080b20c98968a354b (@gkjohnson, @mrdoob)
- Ensure
- WebGLTextures
- Unbind textures with dedicated method. #22394 (@Mugen87)
- WebGLShadowMap
- Add support for setting the number of VSM blur samples. #22272 (@gkjohnson)
- Add support for rendering shadows with displacement maps. #22287 (@gkjohnson)
- Add support for rendering shadows with alpha maps and alpha test. #22410 (@mrdoob)
- WebXRManager
- Switch to native MSAA. #22230 (@cabanier)
- Clear state and added some accessor functions. #22260 (@cabanier)
Documentation
- Improved Chinese translation. #22291, #22328, #22358 (@puxiao, @linbingquan)
- Improved
Box3
andSphere
page. #22317 (@puxiao) - Improved
Plane
page. #22329 (@puxiao) - Improved
Matrix4
page. #22310 (@puxiao) - Improved
WebGLRenderer
page. 4f41e1250ba67fb5112bb633e757c08c7a8618e0 (@mrdoob) - Update
dispose()
return type. #22237 (@servinlp) - Improve description of light intensity and power units. #22299 (@WestLangley)
- Fix typos. #22433 (@saintmalik)
Examples
- Removed
webgl_materials_envmas_parallax
example. #22369 (@mrdoob) - Removed
webgl_materials_parallaxmap
example. #22370 (@mrdoob - Removed
webgl_materials_shaders_fresnel
example. #22215 (@mrdoob) - Removed
webgl_loader_gltf_extensions
example. #22276 (@mrdoob) - Removed
webxr_vr_lorenzattractor
example. #22315 (@mrdoob) - Convert utils files to esmodules. #22284, #22270, #22305, #22306 (@marcofugaro)
- Added transmission to
webgl_furnace_test
example. #22335. #22349 (@WestLangley) - Fixes and cleanup in
webxr_vr_layers
example. #22325 (@felixmariotto) - Improved
webgl_postprocessing_crossfade
example. b834b5569bed1a854e4266c58bece76b60cb8f1e (@mrdoob) - Improved
webgl_loader_lwo
example. f4601f33b222c34dedb4b2d4d5dd554894fab251 (@mrdoob) - Improved
webgl_shadowmap_vsm
example. 74bf45ae3309661b976052a3b4c54f9de28c3c8f (@mrdoob) - Improved
webgl_animation_multiple
example. #22429 (@samueldg)
-
BufferGeometryUtils
- Allow tree-shaking. #22267, #22304 (@marcofugaro)
-
CSS3DRenderer
- Add support for
CSS3DSprite
with parent scale. #22235 (@GiuseppeRaso)
- Add support for
-
FBXLoader
- Clean up. f2eb381d5c8c61f494cdeefdf5949599e49562fe (@mrdoob)
- Check for
null
textures. #22239 (@camnewnham) - Can't check image until loaded. #22289 (@camnewnham)
-
GeometryCompressionUtils
- Removed unused code. 9e30cb42a9f8c0c720e8da57b3b20bdc17650d98 (@mrdoob)
-
GLTFLoader
- Fix cubicspline interpolation for quaternions. #22347 (@Mugen87)
-
IFCLoader
- Various improvements and fixes. #22352 (@agviegas)
-
KTX2Loader
- Enable zstddec decode in web worker. (@deepkolos) #21984
- Warn on outdated Basis library. (@donmccurdy) #22314
-
LDrawLoader
- Improve smooth normal generation performance. #22231, #22228, #22247 (@gkjohnson)
- Improve parts library ergonomics, improve normal smoothing functionality. #22249 (@gkjohnson)
- Parallelize parts library downloads to improve load times. #22253 (@gkjohnson)
- Fix scenario where geometry was not getting smoothed. #22261 (@gkjohnson)
-
NodeMaterial
- Update BSDFs from the last updates. #22301 (@sunag)
- Basic BSDFs of
MeshStandardMaterial
andNodeBuilder
simplification. #22398 (@sunag)
-
RGBELoader
- Fix
numElements
loop. #22390, 3a2f592fd5c29cf0e0a09d1be71faaced32396ae (@OndrejSpanel, @mrdoob)
- Fix
-
SelectionBox
- Add support for InstancedMesh. #22399, b88cb7f8e2209abb8c31fe6fe15dcebea46e50af (@Steviebaa, @mrdoob)
-
TGALoader
- Fix blue component handling for 16-bit (RGBA5551) images. #22360 (@Ithamar)
-
WebGPURenderer
- Replace deprecated constant. #22330 (@Mugen87)
- Removed Blinn Phong Support. #22413, #22420 (@sunag, @Mugen87)
- Support interleaved buffer data. #22421 (@Mugen87)
Editor
- Fix
const
assignment. #22225 (@Mugen87) - Fix
userData
textarea. #22419 (@Mugen87, @ostatni5)
Tests
- Improved readability in
ci.yml
. #22384 (@GmBodhi)