r113
https://github.com/mrdoob/three.js/wiki/Migration-Guide#r112--r113
https://github.com/mrdoob/three.js/milestone/26?closed=1
(609,407 KB, gzip: 151,804 KB)
Source
- Global
- Replace non-breaking with regular space. #18247, #18261, #18260 (@chrisrenner, @Mugen87, @FunFetched)
- Deprecate
Matrix*.applyToBufferAttribute()
methods. #18264 (@WestLangley) - Always use white as default color for
Mesh
,Points
andLine
. #18325 (@Mugen87) - Rename
.applyMatrix()
to.applyMatrix4()
. #18449, #18456, #18466 (@WestLangley)
- BufferAttribute
- Update deprecated
.setDynamic()
warnings. #18391 (@WestLangley)
- Update deprecated
- Camera
- Update
.matrixWorldInverse
in.updateWorldMatrix()
. #18351 (@DavidPeicho)
- Update
- Font
- Frustum
- Rename
.setFromMatrix()
to.setFromProjectionMatrix()
. #18457 (@WestLangley)
- Rename
- InstancedMesh
- KeyframeTrack
- Don't overwrite times/values in
.optimize()
. #18469 (@donmccurdy)
- Don't overwrite times/values in
- Math
- OrthographicCamera
- ParametricGeometry
- PMREMGenerator
- ShadowMaterial
- Support tone mapping and output encoding. #18374 (@WestLangley)
- Vector3
- Added
.setFromMatrix3Column()
. #18343 (@WestLangley) - Support the zero vector in projections. #18510 (@WestLangley)
- Added
- WebGLAttributes
- Reduce heap allocations when using WebGL2 and partial buffer updates. #18418, ce45cc3 (@aardgoose, @mrdoob)
- WebGLBackground
- Improve compilation of background material. #18378, #18420 (@WestLangley)
- WebGLPrograms
- WebGLRenderer
- Use single parameter object for program acquisition. #18279, #18403, #18365 (@Mugen87, @gero3, @WestLangley)
- Fixed shader compile error. #18299, #18379 (@elalish, @WestLangley)
- Clarified limitations of
inverseTransformDirection()
. #18317 (@WestLangley) - Simplified soft shadow shader. #18328 (@elalish)
- Refactor invocation of
initMaterial()
. #18395 (@Mugen87) - Removed outdated
flipEnvMap
comments. #18438 (@WestLangley) - Remove envMap flipping for
CUBE_UV
textures. #18441 (@WestLangley) - Avoid duplicate initialization of materials in
.compile()
. #18415, 03d741d (@EliasHasle, @mrdoob)
- WebGLRenderTarget
- Pass optional mapping property to Texture constructor. #18432 (@WestLangley)
- WebGLRenderTargetCube
- Renamed to
WebGLCubeRenderTarget
. #18286, #18294, #18306 (@WestLangley) - Simplify constructor signature. #18300 (@WestLangley)
- Renamed to
- WebGLTextures
- WebGLUniforms
- Add new mapping to uniform setter for WebGL2 samplers. #18336 (@DavidPeicho)
- Support
uint
uniform type. #18436 (@Mugen87)
- WebXRManager
- Don't double-invert view matrix. #18345, 5e3b159 (@willcassella, @mrdoob)
- Improve timing when
.isPresenting
is changed. #18375 (@Mugen87) - Allows near and far clipping to be set. #18320, ca9c14a (@DougReeder, @mrdoob)
- Expose the
XRInputSource.gripSpace
for XR controllers. #18362, 0a67f08 (@toji, @mrdoob)
Documentation
- Update link to
glTF
Blender addon. #18288 (@donmccurdy) - Improve formatting. #18290, #18295, #18493 (@Mugen87)
- Fix type of
EffectComposer.passes
. #18291 (@takahirox) - Use
BufferGeometry
inPointsMaterial
code example. #18296 (@Mugen87) - Add
MathUtils.setQuaternionFromProperEuler()
. #18305 (@WestLangley) - Remove wrong inheritance in
ShapePath
. #18313 (@gonnavis) - Clarify
Box2
/Box3
descriptions and code example. #18396 (@Mugen87) - Clean up
Skeleton.d.ts
. #18398 (@Mugen87) - Fix typo in
Raycaster
. #18434 (@ligaofeng0901) - Improve CSS in
Creating a scene
guide. #18444 (@Mugen87) - Use
BufferGeometry
inDrawing lines
guide. #18453 (@Mugen87) - Fix method name of
ShapeUtils.isClockWise()
. #18458 (@Mugen87) - Add missing pages for
ImageUtils
andPMREMGenerator
. #18480 (@Mugen87) - Simplify
Creating-a-scene
guide. #18492 (@Mugen87) - Clarify
Vector3.project()
andVector3.unproject()
. #18488 (@WestLangley) - Fix typo in
How to run things locally
guide. #18516 (@skyclo)
TypeScript
- Clean up. #18275, #18478 (@Mugen87, @Mike-Dax)
- Fix material and geometry declaration of Sky. #18250 (@Mugen87)
- Fix signatures for
.setCrossOrigin()
and.transformUv()
. #18257 (@OndrejSpanel) - Fix class name of
TypedGeometryExporter
. #18266 (@terrierscript) - Add missing
.is***
types. #18259 (@yomotsu) - Added
MeshSurfaceSampler.d.ts
. #18276 (@Mugen87) - Add
.uniformsNeedUpdate
toShaderMaterial
. #18289 (@rhuitl) - Add TypeScript setup guide. #18337 (@DavidPeicho)
- Fixed missing export of
PMREMGenerator
. #18358 (@SBRK) - Fixed some math method signatures. #18366 (@OndrejSpanel)
- Added
Box3.setFromBufferAttribute()
. #18370 (@mcharytoniuk) - Fix
WebGLShadowMap
constructor. #18372 (@OndrejSpanel) - Fix
WebGLRenderer.renderBufferImmediate() and
WebGLRenderer.renderBufferDirect()`. #18369 (@OndrejSpanel) - Remove
PixelType
, useTextureDataType
instead. #18383 (@Mugen87) - Fix return type of
Matrix4.decompose()
. #18394 (@OndrejSpanel) - Fix interface of
WebXRManager
. #18426 (@j-devel) - Expose
AnimationAction
again, addedMaterial.shadowSide
. #18475 (@elalish) - Move
Event
definition to the right place. #18505 (@Mugen87) - Fix
WebGLRendererParameters.alpha
docs. #18514 (@yushijinhun)
Examples
- Clean up. #18251, #18252, #18278, #18353, #18331, #18428, #18443, 6126da9, 3e221c2, 58f5a2f (@Mugen87, @takahirox, @WestLangley, @aardgoose, @mrdoob)
- Make CSS renderers respect
Scene.autoUpdate
. #18244 (@donutcoffee) - Added
instancing_modified
example. #18256 (@WestLangley) - Refactor
instancing_interactive
→instancing_performance
. #18254 (@donmccurdy) - Set
DynamicDrawUsage
on dynamic instancing examples. #18271 (@donmccurdy) - Removed
RaytracingRenderer
. #18283 (@mrdoob) - Removed
WebGLDeferredRenderer
. #18284 (@mrdoob) - Avoid creating instances of
LightShadow
. #18309 (@Mugen87) - Fix vertex color settings. #18357 (@Mugen87)
- Ensure
CodeSerializer
works with uglified code. #18356 (@kaisalmen) - Maintain consistency in shader chunk order. #18373 (@WestLangley)
- Ensure HTTPS project links. #18384 (@Mugen87)
- Add comment regarding the use of
RoughnessMipmapper
. #18429 (@WestLangley) - New implementation of
webgl_tonemapping
. #18407 (@WestLangley) - Fix use of removed
GeometryUtils
method. #18442 (@donmccurdy) - Add
XRControllerModelFactory
class. #18450 (@toji) - Use sRGB transfer function in
GammaCorrectionShader
. #18477 (@WestLangley) - Added
webgl_buffergeometry_compression
example. #18208, d3bb317, 60d0738 (@LeonYuanYao, @mrdoob) - Stop logging time values in loaders. #18506 (@Mugen87)
-
BufferGeometryUtils
- Improve readability of
.computeTangents()
. #18248 (@WestLangley)
- Improve readability of
-
CSS2D/CSS3DRenderer
-
EXRLoader
-
GLTFExporter
- Add null check for skeleton while processing skinned mesh. #18397 (@soccer1mt)
-
GLTFLoader
-
LightProbeHelper
- Honor
WebGLRenderer.outputEncoding
. #18274 (@WestLangley)
- Honor
-
NodeMaterial
-
OBJLoader
-
OrbitControls
-
OutlinePass
- Avoid unnecessary instantiation of objects. #18425 (@WestLangley)
- Add support for skinning/morph targets. #18427 (@Mugen87)
-
PCDLoader
-
STLLoader
-
SVGLoader
- Implement units. #18321 (@yomboprime)
-
SVGRenderer
-
VTKLoader
- Fix
POLYDATA
comparison failing with unicode character. #18292 (@DavidPeicho) - Fix float reading too greedy. #18297 (@DavidPeicho)
- Fix
-
Water
Editor
- Fix drag&drop in outliner. #18243 (@Mugen87)
- Always assume WebGL support. #18285 (@Mugen87)
- Avoid duplicated code in
RemoveObjectCommand
. #18460 (@Mugen87) - Fix
.addMaterial()
/.removeMaterial()
for multiple materials. #18461 (@Mugen87) - Automatically remove unused materials from material browser. #18470 (@Mugen87)
- Add support for background texture. #18471 (@Mugen87)
- Add frametime info. #18485 (@Mugen87)
- Expose
editor
towindow
. #18349, 8bf406c (@jespertheend, @mrdoob) - Added cube map support for
Scene.background
. #18494 (@Mugen87) - Removed
SVGRenderer
. 2ed8a9e (@mrdoob) - Avoid running out of webgl contexts. e1d00b9 (@mrdoob)
- Avoid dispatching unneeded events when adding materials. a74cd7f (@mrdoob)
- Nicer edit button. d326c0c (@mrdoob)
- Add HDR support for
UITexture
andUICubeTexture
. #18512 (@Mugen87) - Added tone mapping project settings. #18513 (@Mugen87)