Cesium v1.66.0 Release Notes
Release Date: 2020-02-03 // about 4 years ago-
Deprecated :hourglass_flowing_sand:
- π The property
Scene.sunColor
has been deprecated and will be removed in Cesium 1.69. Usescene.light.color
andscene.light.intensity
instead. #8493
β Additions :tada:
- π
useBrowserRecommendedResolution
flag inViewer
andCesiumWidget
now defaults totrue
. This ensures Cesium rendering is fast and smooth by default across all devices. Set it tofalse
to always render at native device resolution instead at the cost of performance on under-powered devices. #8548 - π Cesium now creates a WebGL context with a
powerPreference
value ofhigh-performance
. Some browsers use this setting to enable a second, more powerful, GPU. You can set it back todefault
, or opt-in tolow-power
mode, by passing the context option when creating aViewer
orCesiumWidget
instance:
var viewer = new Viewer('cesiumContainer', { contextOptions : { webgl : { powerPreference: 'default' } } });
- β Added more customization to Cesium's lighting system. #8493
- Added
Light
,DirectionalLight
, andSunLight
classes for creating custom light sources. - Added
Scene.light
for setting the scene's light source, which defaults to aSunLight
. - Added
Globe.dynamicAtmosphereLighting
for enabling lighting effects on atmosphere and fog, such as day/night transitions. It is true by default but may be set to false if the atmosphere should stay unchanged regardless of the scene's light direction. - Added
Globe.dynamicAtmosphereLightingFromSun
for using the sun direction instead of the scene's light direction whenGlobe.dynamicAtmosphereLighting
is enabled. See the moonlight example in the Lighting Sandcastle example. - Primitives and the globe are now shaded with the scene light's color.
- Added
- β‘οΈ Updated SampleData models to glTF 2.0. #7802
- β Added
Globe.showSkirts
to support the ability to hide terrain skirts when viewing terrain from below the surface. #8489 - β Added
minificationFilter
andmagnificationFilter
options toMaterial
to control texture filtering. #8473 - β‘οΈ Updated earcut to 2.2.1. #8528
- β Added a font cache to improve label performance. #8537
π Fixes :wrench:
- π Fixed a bug where the camera could go underground during mouse navigation. #8504
- π Fixed a bug where rapidly updating a
PolylineCollection
could result in aninstanceIndex
is out of range error. #8546 - π Fixed issue where
RequestScheduler
double-counted image requests made viacreateImageBitmap
. #8162 - β¬οΈ Reduced Cesium bundle size by avoiding unnecessarily importing
Cesium3DTileset
inPicking.js
. #8532 - π Fixed a bug where files with backslashes were not loaded in KMZ files. #8533
- Fixed WebGL warning message about
EXT_float_blend
being implicitly enabled. #8534 - π Fixed a bug where toggling point cloud classification visibility would result in a grey screen on Linux / Nvidia. #8538
- π Fixed a bug where a point in a
PointPrimitiveCollection
was rendered in the middle of the screen instead of being clipped. #8542 - π Fixed a crash when deleting and re-creating polylines from CZML.
ReferenceProperty
now returns undefined when the target entity or property does not exist, instead of throwing. #8544 - π Fixed terrain tile picking in the Cesium Inspector. #8567
- π Fixed a crash that could occur when an entity was deleted while the corresponding
Primitive
was being created asynchronously. #8569 - π Fixed a crash when calling
camera.lookAt
with the origin (0, 0, 0) as the target. This could happen when looking at a tileset with the origin as its center. #8571 - π Fixed a bug where
camera.viewBoundingSphere
was modifying theoffset
parameter. #8438 - π Fixed a crash when creating a plane with both position and normal on the Z-axis. #8576
- π Fixed
BoundingSphere.projectTo2D
when the bounding sphereβs center is at the origin. #8482
- π The property