Cesium v1.91 Release Notes
Release Date: 2022-03-01 // about 2 years ago-
💥 Breaking Changes :mega:
- ⚡️ In Cesium 1.92,
when.js
will be removed and replaced with native promises.Cesium.when
is deprecated and will be removed in 1.92. AnyPromise
returned from a function as of 1.92 will switch the nativePromise
API. Code bases using cesium will likely need updates after this change. See the upgrade guide for instructions on how to update your code base to be compliant with native promises. - 🛠 Fixed an inconsistently handled exception in
camera.getPickRay
that arises when the scene is not rendered.camera.getPickRay
can now return undefined. #10139
➕ Additions :tada:
- ➕ Added MSAA support for WebGL2. Enabled in the
Viewer
constructor with themsaaSamples
option and can be controlled throughScene.msaaSamples
. - 0️⃣ glTF contents now use
ModelExperimental
by default. #10055 - ➕ Added the ability to toggle back-face culling in
ModelExperimental
. #10070 - ➕ Added
depthPlaneEllipsoidOffset
toViewer
andScene
constructors to address rendering artifacts below the WGS84 ellipsoid. #9200 - ➕ Added support for
debugColorTiles
inModelExperimental
. #10071 - ➕ Added support for shadows in
ModelExperimental
. #10077 - ➕ Added
packArray
andunpackArray
for matrix types. #10118 - ➕ Added more affine transformation helper functions to
Matrix2
,Matrix3
, andMatrix4
. #10124- Added
setScale
,setUniformScale
,setRotation
,getRotation
, andmultiplyByUniformScale
toMatrix2
. - Added
setScale
,setUniformScale
,setRotation
, andmultiplyByUniformScale
toMatrix3
. - Added
setUniformScale
,setRotation
,getRotation
, andfromRotation
toMatrix4
.
- Added
- ➕ Added
AxisAlignedBoundingBox.fromCorners
. #10130 - ➕ Added
BoundingSphere.fromTransformation
. #10130 - ➕ Added
OrientedBoundingBox.fromTransformation
,OrientedBoundingBox.computeCorners
, andOrientedBoundingBox.computeTransformation
. #10130 - ➕ Added
Rectangle.subsection
. #10130 - ➕ Added option to show tileset credits on screen. #10144
- glTF copyrights now appear under the credits display. #10138
- Credits are now sorted based on their number of occurrences. #10141
🛠 Fixes :wrench:
- ⚡️ In Cesium 1.92,