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. Any Promise returned from a function as of 1.92 will switch the native Promise 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 the msaaSamples option and can be controlled through Scene.msaaSamples.
    • 0️⃣ glTF contents now use ModelExperimental by default. #10055
    • ➕ Added the ability to toggle back-face culling in ModelExperimental. #10070
    • ➕ Added depthPlaneEllipsoidOffset to Viewer and Scene constructors to address rendering artifacts below the WGS84 ellipsoid. #9200
    • ➕ Added support for debugColorTiles in ModelExperimental. #10071
    • ➕ Added support for shadows in ModelExperimental. #10077
    • ➕ Added packArray and unpackArray for matrix types. #10118
    • ➕ Added more affine transformation helper functions to Matrix2, Matrix3, and Matrix4. #10124
      • Added setScale, setUniformScale, setRotation, getRotation, and multiplyByUniformScale to Matrix2.
      • Added setScale, setUniformScale, setRotation, and multiplyByUniformScale to Matrix3.
      • Added setUniformScale, setRotation, getRotation, and fromRotation to Matrix4.
    • ➕ Added AxisAlignedBoundingBox.fromCorners. #10130
    • ➕ Added BoundingSphere.fromTransformation. #10130
    • ➕ Added OrientedBoundingBox.fromTransformation, OrientedBoundingBox.computeCorners, and OrientedBoundingBox.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:
    • 🛠 Fixed a bug where updating ModelExperimental's model matrix would not update its bounding sphere. #10078
    • 🛠 Fixed feature ID texture artifacts on Safari. #10111
    • 🛠 Fixed a bug where a translucent shader applied to a ModelExperimental with opaque features was not being rendered. #10110