@cesium/engine 11.1.0 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/Build/Workers/{chunk-MXIZJAPH.js → chunk-2B5H7KIN.js} +1 -1
  2. package/Build/Workers/{chunk-DI5NGJUP.js → chunk-2RHMHHJH.js} +2 -2
  3. package/Build/Workers/{chunk-E6V6SQZW.js → chunk-3OHDXGFC.js} +6 -6
  4. package/Build/Workers/{chunk-GESF4OXQ.js → chunk-3OM5QZSI.js} +2 -2
  5. package/Build/Workers/{chunk-E63IIM5T.js → chunk-3UJV3W4Y.js} +1 -1
  6. package/Build/Workers/{chunk-O3E4OAOE.js → chunk-3X2LXRHU.js} +13 -13
  7. package/Build/Workers/{chunk-CKY7HOHV.js → chunk-4ESQ3DN2.js} +9 -9
  8. package/Build/Workers/{chunk-BHQJ2NT7.js → chunk-4IQPX22D.js} +6 -6
  9. package/Build/Workers/{chunk-JW4FOI6M.js → chunk-4XPGN5Y7.js} +11 -11
  10. package/Build/Workers/{chunk-DHYHSFFJ.js → chunk-56LALJCU.js} +2 -2
  11. package/Build/Workers/{chunk-YZ733KKS.js → chunk-5FSKL7US.js} +12 -12
  12. package/Build/Workers/{chunk-3Q2L65QU.js → chunk-5YKJKOFE.js} +7 -7
  13. package/Build/Workers/{chunk-GWCFU2SA.js → chunk-62YGXNGC.js} +7 -7
  14. package/Build/Workers/{chunk-M3GMB5OP.js → chunk-6DYMJ57Z.js} +10 -10
  15. package/Build/Workers/{chunk-IBLIYJZR.js → chunk-7DSVCRFD.js} +6 -6
  16. package/Build/Workers/{chunk-5PTXS2GO.js → chunk-7OISMGQF.js} +7 -7
  17. package/Build/Workers/{chunk-2ZGOQXYU.js → chunk-AL7BHP36.js} +6 -6
  18. package/Build/Workers/{chunk-TGONEMZO.js → chunk-AOCENJVH.js} +11 -11
  19. package/Build/Workers/{chunk-472HQ3EH.js → chunk-ARTM66DL.js} +5 -5
  20. package/Build/Workers/{chunk-K4GQUNB5.js → chunk-B4AZL6Q4.js} +5 -5
  21. package/Build/Workers/{chunk-GNBFYG7F.js → chunk-BQNTN4CC.js} +13 -13
  22. package/Build/Workers/{chunk-GGZJN2TI.js → chunk-C4IAULHW.js} +15 -15
  23. package/Build/Workers/{chunk-7BMOHCPM.js → chunk-ES6Q5HWK.js} +13 -13
  24. package/Build/Workers/{chunk-PGRPDNHG.js → chunk-GKBICLGC.js} +17 -17
  25. package/Build/Workers/{chunk-C6YYBQXW.js → chunk-GMGUR5GM.js} +4 -4
  26. package/Build/Workers/{chunk-FDOV2LBJ.js → chunk-GUW6BS72.js} +7 -7
  27. package/Build/Workers/{chunk-U72QNFOJ.js → chunk-GYHHNFW5.js} +10 -10
  28. package/Build/Workers/{chunk-YSGTGQQO.js → chunk-GZG526CC.js} +14 -14
  29. package/Build/Workers/{chunk-5ODQSF26.js → chunk-HILBDZUP.js} +2 -2
  30. package/Build/Workers/{chunk-TKVT5GQM.js → chunk-HYUTWUXN.js} +13 -13
  31. package/Build/Workers/{chunk-XY4BATBS.js → chunk-IL6SMMDD.js} +4 -4
  32. package/Build/Workers/{chunk-6CHGCNMW.js → chunk-IT6AWHFV.js} +2 -2
  33. package/Build/Workers/{chunk-7O373FFS.js → chunk-J64XIF5C.js} +8 -8
  34. package/Build/Workers/{chunk-I2ITFFPX.js → chunk-JGGZ3H4W.js} +1 -1
  35. package/Build/Workers/{chunk-26GA3JAM.js → chunk-JRULXFCC.js} +5 -5
  36. package/Build/Workers/{chunk-27HUZ7SA.js → chunk-MSY2AAW2.js} +4 -4
  37. package/Build/Workers/{chunk-SMDOP47J.js → chunk-QXBRZZQS.js} +10 -10
  38. package/Build/Workers/{chunk-5OOFQLKF.js → chunk-SXJ37VUC.js} +7 -7
  39. package/Build/Workers/{chunk-AD63PIY6.js → chunk-T6FZFMTF.js} +2 -2
  40. package/Build/Workers/{chunk-VU2MNO7L.js → chunk-TQK4D4AR.js} +7 -7
  41. package/Build/Workers/{chunk-E27BLMDD.js → chunk-US3L7FXC.js} +6 -6
  42. package/Build/Workers/{chunk-N5KJGGCM.js → chunk-VGT4ONMC.js} +17 -17
  43. package/Build/Workers/{chunk-PRGYLLJT.js → chunk-VJVTWBXB.js} +1 -1
  44. package/Build/Workers/{chunk-EJZTDTUH.js → chunk-VQZNBD3T.js} +4 -4
  45. package/Build/Workers/{chunk-NGPPMXRM.js → chunk-VUCVRDLD.js} +7 -7
  46. package/Build/Workers/{chunk-YFXQECWV.js → chunk-W2Q2F7JS.js} +5 -5
  47. package/Build/Workers/{chunk-VJZB3WAV.js → chunk-WQCX7U65.js} +7 -7
  48. package/Build/Workers/{chunk-7JO7GPJN.js → chunk-WW5RTJ72.js} +1 -1
  49. package/Build/Workers/{chunk-76BYBWHP.js → chunk-X67KKHI7.js} +4 -4
  50. package/Build/Workers/{chunk-7KTQP4VB.js → chunk-X7VRF25X.js} +5 -5
  51. package/Build/Workers/{chunk-S6MRMMQU.js → chunk-YANQEHO5.js} +6 -6
  52. package/Build/Workers/{chunk-FIGIZHAQ.js → chunk-ZZNBFQL5.js} +11 -11
  53. package/Build/Workers/combineGeometry.js +22 -22
  54. package/Build/Workers/createBoxGeometry.js +16 -16
  55. package/Build/Workers/createBoxOutlineGeometry.js +14 -14
  56. package/Build/Workers/createCircleGeometry.js +24 -24
  57. package/Build/Workers/createCircleOutlineGeometry.js +17 -17
  58. package/Build/Workers/createCoplanarPolygonGeometry.js +31 -31
  59. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
  60. package/Build/Workers/createCorridorGeometry.js +27 -27
  61. package/Build/Workers/createCorridorOutlineGeometry.js +26 -26
  62. package/Build/Workers/createCylinderGeometry.js +18 -18
  63. package/Build/Workers/createCylinderOutlineGeometry.js +16 -16
  64. package/Build/Workers/createEllipseGeometry.js +24 -24
  65. package/Build/Workers/createEllipseOutlineGeometry.js +17 -17
  66. package/Build/Workers/createEllipsoidGeometry.js +17 -17
  67. package/Build/Workers/createEllipsoidOutlineGeometry.js +16 -16
  68. package/Build/Workers/createFrustumGeometry.js +16 -16
  69. package/Build/Workers/createFrustumOutlineGeometry.js +16 -16
  70. package/Build/Workers/createGeometry.js +22 -22
  71. package/Build/Workers/createGroundPolylineGeometry.js +20 -20
  72. package/Build/Workers/createPlaneGeometry.js +14 -14
  73. package/Build/Workers/createPlaneOutlineGeometry.js +13 -13
  74. package/Build/Workers/createPolygonGeometry.js +30 -30
  75. package/Build/Workers/createPolygonOutlineGeometry.js +28 -28
  76. package/Build/Workers/createPolylineGeometry.js +23 -23
  77. package/Build/Workers/createPolylineVolumeGeometry.js +29 -29
  78. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +25 -25
  79. package/Build/Workers/createRectangleGeometry.js +25 -25
  80. package/Build/Workers/createRectangleOutlineGeometry.js +18 -18
  81. package/Build/Workers/createSimplePolylineGeometry.js +21 -21
  82. package/Build/Workers/createSphereGeometry.js +17 -17
  83. package/Build/Workers/createSphereOutlineGeometry.js +16 -16
  84. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  85. package/Build/Workers/createVectorTileClampedPolylines.js +13 -13
  86. package/Build/Workers/createVectorTileGeometries.js +22 -22
  87. package/Build/Workers/createVectorTilePoints.js +12 -12
  88. package/Build/Workers/createVectorTilePolygons.js +20 -20
  89. package/Build/Workers/createVectorTilePolylines.js +13 -13
  90. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +20 -20
  91. package/Build/Workers/createVerticesFromHeightmap.js +20 -20
  92. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +17 -17
  93. package/Build/Workers/createWallGeometry.js +22 -22
  94. package/Build/Workers/createWallOutlineGeometry.js +21 -21
  95. package/Build/Workers/decodeDraco.js +11 -11
  96. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
  97. package/Build/Workers/decodeI3S.js +10 -10
  98. package/Build/Workers/transcodeKTX2.js +7 -7
  99. package/Build/Workers/transferTypedArrayTest.js +1 -1
  100. package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
  101. package/Source/Core/BoundingSphere.js +1 -1
  102. package/Source/Core/Color.js +1 -1
  103. package/Source/Core/CorridorGeometryLibrary.js +4 -4
  104. package/Source/Core/EllipseGeometry.js +1 -1
  105. package/Source/Core/EllipsoidGeodesic.js +1 -1
  106. package/Source/Core/FrustumGeometry.js +1 -1
  107. package/Source/Core/Ion.js +1 -1
  108. package/Source/Core/Math.js +2 -0
  109. package/Source/Core/PolylineVolumeGeometryLibrary.js +2 -2
  110. package/Source/Core/decodeGoogleEarthEnterpriseData.js +1 -1
  111. package/Source/DataSources/DataSourceDisplay.js +1 -1
  112. package/Source/DataSources/ModelGraphics.js +1 -0
  113. package/Source/Renderer/AutomaticUniforms.js +13 -0
  114. package/Source/Renderer/CubeMap.js +89 -12
  115. package/Source/Renderer/CubeMapFace.js +90 -13
  116. package/Source/Renderer/UniformState.js +13 -0
  117. package/Source/Scene/ArcGisMapService.js +1 -1
  118. package/Source/Scene/Atmosphere.js +22 -0
  119. package/Source/Scene/BingMapsImageryProvider.js +1 -1
  120. package/Source/Scene/Cesium3DTileset.js +39 -0
  121. package/Source/Scene/DynamicEnvironmentMapManager.js +852 -0
  122. package/Source/Scene/Fog.js +75 -82
  123. package/Source/Scene/FrameState.js +5 -3
  124. package/Source/Scene/ImageBasedLighting.js +7 -64
  125. package/Source/Scene/Model/AtmospherePipelineStage.js +10 -5
  126. package/Source/Scene/Model/ImageBasedLightingPipelineStage.js +43 -21
  127. package/Source/Scene/Model/Model.js +98 -25
  128. package/Source/Scene/Model/Model3DTileContent.js +5 -0
  129. package/Source/Scene/Model/ModelSceneGraph.js +1 -0
  130. package/Source/Scene/ScreenSpaceCameraController.js +20 -1
  131. package/Source/Shaders/Builtin/Functions/computeAtmosphereColor.glsl +44 -0
  132. package/Source/Shaders/Builtin/Functions/computeAtmosphereColor.js +44 -0
  133. package/Source/Shaders/Builtin/Functions/computeScattering.glsl +0 -1
  134. package/Source/Shaders/Builtin/Functions/computeScattering.js +0 -1
  135. package/Source/Shaders/Builtin/Functions/sphericalHarmonics.glsl +3 -1
  136. package/Source/Shaders/Builtin/Functions/sphericalHarmonics.js +3 -1
  137. package/Source/Shaders/ComputeIrradianceFS.glsl +103 -0
  138. package/Source/Shaders/ComputeIrradianceFS.js +105 -0
  139. package/Source/Shaders/ComputeRadianceMapFS.glsl +107 -0
  140. package/Source/Shaders/ComputeRadianceMapFS.js +109 -0
  141. package/Source/Shaders/ConvolveSpecularMapFS.glsl +70 -0
  142. package/Source/Shaders/ConvolveSpecularMapFS.js +72 -0
  143. package/Source/Shaders/ConvolveSpecularMapVS.glsl +24 -0
  144. package/Source/Shaders/ConvolveSpecularMapVS.js +26 -0
  145. package/Source/Shaders/GlobeFS.glsl +1 -2
  146. package/Source/Shaders/GlobeFS.js +1 -2
  147. package/Source/Shaders/Model/AtmosphereStageFS.glsl +1 -4
  148. package/Source/Shaders/Model/AtmosphereStageFS.js +1 -4
  149. package/Source/Shaders/Model/ImageBasedLightingStageFS.glsl +2 -155
  150. package/Source/Shaders/Model/ImageBasedLightingStageFS.js +3 -156
  151. package/Source/Shaders/Model/LightingStageFS.glsl +3 -22
  152. package/Source/Shaders/Model/LightingStageFS.js +3 -22
  153. package/Source/Shaders/SkyBoxVS.glsl +0 -1
  154. package/Source/Shaders/SkyBoxVS.js +0 -1
  155. package/Source/Widget/CesiumWidget.js +776 -1
  156. package/Source/Workers/decodeGoogleEarthEnterprisePacket.js +1 -1
  157. package/index.d.ts +266 -12
  158. package/index.js +15 -10
  159. package/package.json +2 -2
@@ -201,7 +201,7 @@ function processMetadata(buffer, totalSize, quadKey) {
201
201
  const numMeshesPerPacket = 5;
202
202
  const numSubMeshesPerMesh = 4;
203
203
 
204
- // Each terrain packet will have 5 meshes - each containg 4 sub-meshes:
204
+ // Each terrain packet will have 5 meshes - each contain 4 sub-meshes:
205
205
  // 1 even level mesh and its 4 odd level children.
206
206
  // Any remaining bytes after the 20 sub-meshes contains water surface meshes,
207
207
  // which are ignored.
package/index.d.ts CHANGED
@@ -1255,7 +1255,7 @@ export class BoundingSphere {
1255
1255
  static projectTo2D(sphere: BoundingSphere, projection?: any, result?: BoundingSphere): BoundingSphere;
1256
1256
  /**
1257
1257
  * Determines whether or not a sphere is hidden from view by the occluder.
1258
- * @param sphere - The bounding sphere surrounding the occludee object.
1258
+ * @param sphere - The bounding sphere surrounding the occluded object.
1259
1259
  * @param occluder - The occluder.
1260
1260
  * @returns <code>true</code> if the sphere is not visible; otherwise <code>false</code>.
1261
1261
  */
@@ -6033,7 +6033,7 @@ export class EllipsoidGeodesic {
6033
6033
  interpolateUsingFraction(fraction: number, result?: Cartographic): Cartographic;
6034
6034
  /**
6035
6035
  * Provides the location of a point at the indicated distance along the geodesic.
6036
- * @param distance - The distance from the inital point to the point of interest along the geodesic
6036
+ * @param distance - The distance from the initial point to the point of interest along the geodesic
6037
6037
  * @param [result] - The object in which to store the result.
6038
6038
  * @returns The location of the point along the geodesic.
6039
6039
  */
@@ -25952,6 +25952,12 @@ export class Atmosphere {
25952
25952
  * be used for dynamically lighting all atmosphere-related rendering effects.
25953
25953
  */
25954
25954
  dynamicLighting: DynamicAtmosphereLightingType;
25955
+ /**
25956
+ * Returns <code>true</code> if the atmosphere shader requires a color correct step.
25957
+ * @param atmosphere - The atmosphere instance to check
25958
+ * @returns true if the atmosphere shader requires a color correct step
25959
+ */
25960
+ static requiresColorCorrect(atmosphere: Atmosphere): boolean;
25955
25961
  }
25956
25962
 
25957
25963
  /**
@@ -29144,6 +29150,7 @@ export namespace Cesium3DTileset {
29144
29150
  * @property [debugShowRenderingStatistics = false] - For debugging only. When true, draws labels to indicate the number of commands, points, triangles and features for each tile.
29145
29151
  * @property [debugShowMemoryUsage = false] - For debugging only. When true, draws labels to indicate the texture and geometry memory in megabytes used by each tile.
29146
29152
  * @property [debugShowUrl = false] - For debugging only. When true, draws labels to indicate the url of each tile.
29153
+ * @param [options.environmentMapOptions] - The properties for managing dynamic environment maps on this model.
29147
29154
  */
29148
29155
  type ConstructorOptions = {
29149
29156
  show?: boolean;
@@ -29911,6 +29918,14 @@ export class Cesium3DTileset {
29911
29918
  * The properties for managing image-based lighting on this tileset.
29912
29919
  */
29913
29920
  imageBasedLighting: ImageBasedLighting;
29921
+ /**
29922
+ * The properties for managing dynamic environment maps on this model. Affects lighting.
29923
+ * @example
29924
+ * // Change the ground color used for a tileset's environment map to a forest green
29925
+ * const environmentMapManager = tileset.environmentMapManager;
29926
+ * environmentMapManager.groundColor = Cesium.Color.fromCssColorString("#203b34");
29927
+ */
29928
+ readonly environmentMapManager: DynamicEnvironmentMapManager;
29914
29929
  /**
29915
29930
  * Indicates that only the tileset's vector tiles should be used for classification.
29916
29931
  */
@@ -31524,6 +31539,121 @@ export enum DynamicAtmosphereLightingType {
31524
31539
  SUNLIGHT = 2
31525
31540
  }
31526
31541
 
31542
+ export namespace DynamicEnvironmentMapManager {
31543
+ /**
31544
+ * Options for the DynamicEnvironmentMapManager constructor
31545
+ * @property [enabled = true] - If true, the environment map and related properties will continue to update.
31546
+ * @property [mipmapLevels = 10] - The number of mipmap levels to generate for specular maps. More mipmap levels will produce a higher resolution specular reflection.
31547
+ * @property [maximumSecondsDifference = 3600] - The maximum amount of elapsed seconds before a new environment map is created.
31548
+ * @property [maximumPositionEpsilon = 1000] - The maximum difference in position before a new environment map is created, in meters. Small differences in position will not visibly affect results.
31549
+ * @property [atmosphereScatteringIntensity = 2.0] - The intensity of the scattered light emitted from the atmosphere. This should be adjusted relative to the value of {@link Scene.light} intensity.
31550
+ * @property [gamma = 1.0] - The gamma correction to apply to the range of light emitted from the environment. 1.0 uses the unmodified emitted light color.
31551
+ * @property [brightness = 1.0] - The brightness of light emitted from the environment. 1.0 uses the unmodified emitted environment color. Less than 1.0 makes the light darker while greater than 1.0 makes it brighter.
31552
+ * @property [saturation = 1.0] - The saturation of the light emitted from the environment. 1.0 uses the unmodified emitted environment color. Less than 1.0 reduces the saturation while greater than 1.0 increases it.
31553
+ * @property [groundColor = DynamicEnvironmentMapManager.AVERAGE_EARTH_GROUND_COLOR] - Solid color used to represent the ground.
31554
+ * @property [groundAlbedo = 0.31] - The percentage of light reflected from the ground. The average earth albedo is 0.31.
31555
+ */
31556
+ type ConstructorOptions = {
31557
+ enabled?: boolean;
31558
+ mipmapLevels?: number;
31559
+ maximumSecondsDifference?: number;
31560
+ maximumPositionEpsilon?: number;
31561
+ atmosphereScatteringIntensity?: number;
31562
+ gamma?: number;
31563
+ brightness?: number;
31564
+ saturation?: number;
31565
+ groundColor?: Color;
31566
+ groundAlbedo?: number;
31567
+ };
31568
+ }
31569
+
31570
+ /**
31571
+ * Generates an environment map at the given position based on scene's current lighting conditions. From this, it produces multiple levels of specular maps and spherical harmonic coefficients than can be used with {@link ImageBasedLighting} for models or tilesets.
31572
+ * @example
31573
+ * // Enable time-of-day environment mapping in a scene
31574
+ * scene.atmosphere.dynamicLighting = Cesium.DynamicAtmosphereLightingType.SUNLIGHT;
31575
+ *
31576
+ * // Decrease the directional lighting contribution
31577
+ * scene.light.intensity = 0.5
31578
+ *
31579
+ * // Increase the intensity of of the environment map lighting contribution
31580
+ * const environmentMapManager = tileset.environmentMapManager;
31581
+ * environmentMapManager.atmosphereScatteringIntensity = 3.0;
31582
+ * @example
31583
+ * // Change the ground color used for a model's environment map to a forest green
31584
+ * const environmentMapManager = model.environmentMapManager;
31585
+ * environmentMapManager.groundColor = Cesium.Color.fromCssColorString("#203b34");
31586
+ * @param [options] - An object describing initialization options.
31587
+ */
31588
+ export class DynamicEnvironmentMapManager {
31589
+ constructor(options?: DynamicEnvironmentMapManager.ConstructorOptions);
31590
+ /**
31591
+ * If true, the environment map and related properties will continue to update.
31592
+ */
31593
+ enabled: boolean;
31594
+ /**
31595
+ * The maximum amount of elapsed seconds before a new environment map is created.
31596
+ */
31597
+ maximumSecondsDifference: number;
31598
+ /**
31599
+ * The maximum difference in position before a new environment map is created, in meters. Small differences in position will not visibly affect results.
31600
+ */
31601
+ maximumPositionEpsilon: number;
31602
+ /**
31603
+ * The intensity of the scattered light emitted from the atmosphere. This should be adjusted relative to the value of {@link Scene.light} intensity.
31604
+ */
31605
+ atmosphereScatteringIntensity: number;
31606
+ /**
31607
+ * The gamma correction to apply to the range of light emitted from the environment. 1.0 uses the unmodified incoming light color.
31608
+ */
31609
+ gamma: number;
31610
+ /**
31611
+ * The brightness of light emitted from the environment. 1.0 uses the unmodified emitted environment color. Less than 1.0
31612
+ * makes the light darker while greater than 1.0 makes it brighter.
31613
+ */
31614
+ brightness: number;
31615
+ /**
31616
+ * The saturation of the light emitted from the environment. 1.0 uses the unmodified emitted environment color. Less than 1.0 reduces the
31617
+ * saturation while greater than 1.0 increases it.
31618
+ */
31619
+ saturation: number;
31620
+ /**
31621
+ * Solid color used to represent the ground.
31622
+ */
31623
+ groundColor: Color;
31624
+ /**
31625
+ * The percentage of light reflected from the ground. The average earth albedo is 0.31.
31626
+ */
31627
+ groundAlbedo: number;
31628
+ /**
31629
+ * The position around which the environment map is generated.
31630
+ */
31631
+ position: Cartesian3 | undefined;
31632
+ /**
31633
+ * Returns true if this object was destroyed; otherwise, false.
31634
+ * <br /><br />
31635
+ * If this object was destroyed, it should not be used; calling any function other than
31636
+ * <code>isDestroyed</code> will result in a {@link DeveloperError} exception.
31637
+ * @returns <code>true</code> if this object was destroyed; otherwise, <code>false</code>.
31638
+ */
31639
+ isDestroyed(): boolean;
31640
+ /**
31641
+ * Destroys the WebGL resources held by this object. Destroying an object allows for deterministic
31642
+ * release of WebGL resources, instead of relying on the garbage collector to destroy this object.
31643
+ * <br /><br />
31644
+ * Once an object is destroyed, it should not be used; calling any function other than
31645
+ * <code>isDestroyed</code> will result in a {@link DeveloperError} exception. Therefore,
31646
+ * assign the return value (<code>undefined</code>) to the object as done in the example.
31647
+ * @example
31648
+ * mapManager = mapManager && mapManager.destroy();
31649
+ */
31650
+ destroy(): void;
31651
+ /**
31652
+ * Average hue of ground color on earth, a warm green-gray.
31653
+ */
31654
+ static AVERAGE_EARTH_GROUND_COLOR: Color;
31655
+ }
31656
+
31527
31657
  /**
31528
31658
  * An appearance for geometry on the surface of the ellipsoid like {@link PolygonGeometry}
31529
31659
  * and {@link RectangleGeometry}, which supports all materials like {@link MaterialAppearance}
@@ -31707,11 +31837,18 @@ export class Fog {
31707
31837
  constructor();
31708
31838
  /**
31709
31839
  * <code>true</code> if fog is enabled, <code>false</code> otherwise.
31840
+ * @example
31841
+ * // Disable fog in the scene
31842
+ * viewer.scene.fog.enabled = false;
31710
31843
  */
31711
31844
  enabled: boolean;
31712
31845
  /**
31713
31846
  * <code>true</code> if fog is renderable in shaders, <code>false</code> otherwise.
31714
31847
  * This allows to benefits from optimized tile loading strategy based on fog density without the actual visual rendering.
31848
+ * @example
31849
+ * // Use fog culling but don't render it
31850
+ * viewer.scene.fog.enabled = true;
31851
+ * viewer.scene.fog.renderable = false;
31715
31852
  */
31716
31853
  renderable: boolean;
31717
31854
  /**
@@ -31720,8 +31857,27 @@ export class Fog {
31720
31857
  * The more dense the fog is, the more aggressively the terrain is culled. For example, if the camera is a height of
31721
31858
  * 1000.0m above the ellipsoid, increasing the value to 3.0e-3 will cause many tiles close to the viewer be culled.
31722
31859
  * Decreasing the value will push the fog further from the viewer, but decrease performance as more of the terrain is rendered.
31860
+ * @example
31861
+ * // Double the default fog density
31862
+ * viewer.scene.fog.density = 0.0012;
31723
31863
  */
31724
31864
  density: number;
31865
+ /**
31866
+ * A scalar used in the function to adjust density based on the height of the camera above the terrain.
31867
+ */
31868
+ heightScalar: number;
31869
+ /**
31870
+ * The maximum height fog is applied. If the camera is above this height fog will be disabled.
31871
+ */
31872
+ maxHeight: number;
31873
+ /**
31874
+ * A scalar that impacts the visual density of fog. This value does not impact the culling of terrain.
31875
+ * Use in combination with the {@link Fog.density} to make fog appear more or less dense.
31876
+ * @example
31877
+ * // Increase fog appearance effect
31878
+ * viewer.scene.fog.visualDensityScalar = 0.6;
31879
+ */
31880
+ visualDensityScalar: number;
31725
31881
  /**
31726
31882
  * A factor used to increase the screen space error of terrain tiles when they are partially in fog. The effect is to reduce
31727
31883
  * the number of terrain tiles requested for rendering. If set to zero, the feature will be disabled. If the value is increased
@@ -31734,6 +31890,11 @@ export class Fog {
31734
31890
  * the brightness at all.
31735
31891
  */
31736
31892
  minimumBrightness: number;
31893
+ /**
31894
+ * Exponent factor used in the function to adjust how density changes based on the height of the camera above the ellipsoid. Smaller values produce a more gradual transition as camera height increases.
31895
+ * Value must be greater than 0.
31896
+ */
31897
+ heightFalloff: number;
31737
31898
  }
31738
31899
 
31739
31900
  /**
@@ -33660,7 +33821,6 @@ export class I3SSymbology {
33660
33821
  * Otherwise, the application is responsible for calling destroy().
33661
33822
  * </p>
33662
33823
  * @param [options.imageBasedLightingFactor = Cartesian2(1.0, 1.0)] - Scales diffuse and specular image-based lighting from the earth, sky, atmosphere and star skybox.
33663
- * @param [options.luminanceAtZenith = 0.2] - The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map.
33664
33824
  * @param [options.sphericalHarmonicCoefficients] - The third order spherical harmonic coefficients used for the diffuse color of image-based lighting.
33665
33825
  * @param [options.specularEnvironmentMaps] - A URL to a KTX2 file that contains a cube map of the specular lighting and the convoluted specular mipmaps.
33666
33826
  */
@@ -33673,13 +33833,6 @@ export class ImageBasedLighting {
33673
33833
  * disable those light sources.
33674
33834
  */
33675
33835
  imageBasedLightingFactor: Cartesian2;
33676
- /**
33677
- * The sun's luminance at the zenith in kilo candela per meter squared
33678
- * to use for this model's procedural environment map. This is used when
33679
- * {@link ImageBasedLighting#specularEnvironmentMaps} and {@link ImageBasedLighting#sphericalHarmonicCoefficients}
33680
- * are not defined.
33681
- */
33682
- luminanceAtZenith: number;
33683
33836
  /**
33684
33837
  * The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. When <code>undefined</code>, a diffuse irradiance
33685
33838
  * computed from the atmosphere color is used.
@@ -37098,7 +37251,7 @@ export class Model {
37098
37251
  */
37099
37252
  enableVerticalExaggeration: boolean;
37100
37253
  /**
37101
- * The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
37254
+ * The directional light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
37102
37255
  * <p>
37103
37256
  * Disabling additional light sources by setting
37104
37257
  * <code>model.imageBasedLighting.imageBasedLightingFactor = new Cartesian2(0.0, 0.0)</code>
@@ -37110,6 +37263,14 @@ export class Model {
37110
37263
  * The properties for managing image-based lighting on this model.
37111
37264
  */
37112
37265
  imageBasedLighting: ImageBasedLighting;
37266
+ /**
37267
+ * The properties for managing dynamic environment maps on this model. Affects lighting.
37268
+ * @example
37269
+ * // Change the ground color used for a model's environment map to a forest green
37270
+ * const environmentMapManager = model.environmentMapManager;
37271
+ * environmentMapManager.groundColor = Cesium.Color.fromCssColorString("#203b34");
37272
+ */
37273
+ readonly environmentMapManager: DynamicEnvironmentMapManager;
37113
37274
  /**
37114
37275
  * Whether to cull back-facing geometry. When true, back face culling is
37115
37276
  * determined by the material's doubleSided property; when false, back face
@@ -37349,6 +37510,7 @@ export class Model {
37349
37510
  * @param [options.clippingPolygons] - The {@link ClippingPolygonCollection} used to selectively disable rendering the model.
37350
37511
  * @param [options.lightColor] - The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
37351
37512
  * @param [options.imageBasedLighting] - The properties for managing image-based lighting on this model.
37513
+ * @param [options.environmentMapOptions] - The properties for managing dynamic environment maps on this model.
37352
37514
  * @param [options.backFaceCulling = true] - Whether to cull back-facing geometry. When true, back face culling is determined by the material's doubleSided property; when false, back face culling is disabled. Back faces are not culled if the model's color is translucent.
37353
37515
  * @param [options.credit] - A credit for the data source, which is displayed on the canvas.
37354
37516
  * @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
@@ -37402,6 +37564,7 @@ export class Model {
37402
37564
  clippingPolygons?: ClippingPolygonCollection;
37403
37565
  lightColor?: Cartesian3;
37404
37566
  imageBasedLighting?: ImageBasedLighting;
37567
+ environmentMapOptions?: DynamicEnvironmentMapManager.ConstructorOptions;
37405
37568
  backFaceCulling?: boolean;
37406
37569
  credit?: Credit | string;
37407
37570
  showCreditsOnScreen?: boolean;
@@ -41438,6 +41601,13 @@ export class ScreenSpaceCameraController {
41438
41601
  * When disabled, the values of <code>maximumZoomDistance</code> and <code>minimumZoomDistance</code> are ignored.
41439
41602
  */
41440
41603
  enableCollisionDetection: boolean;
41604
+ /**
41605
+ * The angle, relative to the ellipsoid normal, restricting the maximum amount that the user can tilt the camera. If <code>undefined</code>, the angle of the camera tilt is unrestricted.
41606
+ * @example
41607
+ * // Prevent the camera from tilting below the ellipsoid surface
41608
+ * viewer.scene.screenSpaceCameraController.maximumTiltAngle = Math.PI / 2.0;
41609
+ */
41610
+ maximumTiltAngle: number | undefined;
41441
41611
  /**
41442
41612
  * Returns true if this object was destroyed; otherwise, false.
41443
41613
  * <br /><br />
@@ -43979,6 +44149,7 @@ export function createWorldImageryAsync(options?: {
43979
44149
  * @param container - The DOM element or ID that will contain the widget.
43980
44150
  * @param [options] - Object with the following properties:
43981
44151
  * @param [options.clock = new Clock()] - The clock to use to control current time.
44152
+ * @param [options.shouldAnimate = false] - <code>true</code> if the clock should attempt to advance simulation time by default, <code>false</code> otherwise.
43982
44153
  * @param [options.ellipsoid = Ellipsoid.default] - The default ellipsoid.
43983
44154
  * @param [options.baseLayer = ImageryLayer.fromWorldImagery()] - The bottommost imagery layer applied to the globe. If set to <code>false</code>, no imagery provider will be added.
43984
44155
  * @param [options.terrainProvider = new EllipsoidTerrainProvider(options.ellipsoid)] - The terrain provider.
@@ -43994,14 +44165,17 @@ export function createWorldImageryAsync(options?: {
43994
44165
  * @param [options.useBrowserRecommendedResolution = true] - If true, render at the browser's recommended resolution and ignore <code>window.devicePixelRatio</code>.
43995
44166
  * @param [options.targetFrameRate] - The target frame rate when using the default render loop.
43996
44167
  * @param [options.showRenderLoopErrors = true] - If true, this widget will automatically display an HTML panel to the user containing the error, if a render loop error occurs.
44168
+ * @param [options.automaticallyTrackDataSourceClocks = true] - If true, this widget will automatically track the clock settings of newly added DataSources, updating if the DataSource's clock changes. Set this to false if you want to configure the clock independently.
43997
44169
  * @param [options.contextOptions] - Context and WebGL creation properties passed to {@link Scene}.
43998
44170
  * @param [options.creditContainer] - The DOM element or ID that will contain the {@link CreditDisplay}. If not specified, the credits are added
43999
44171
  * to the bottom of the widget itself.
44000
44172
  * @param [options.creditViewport] - The DOM element or ID that will contain the credit pop up created by the {@link CreditDisplay}. If not specified, it will appear over the widget itself.
44173
+ * @param [options.dataSources = new DataSourceCollection()] - The collection of data sources visualized by the widget. If this parameter is provided,
44174
+ * the instance is assumed to be owned by the caller and will not be destroyed when the widget is destroyed.
44001
44175
  * @param [options.shadows = false] - Determines if shadows are cast by light sources.
44002
44176
  * @param [options.terrainShadows = ShadowMode.RECEIVE_ONLY] - Determines if the terrain casts or receives shadows from light sources.
44003
44177
  * @param [options.mapMode2D = MapMode2D.INFINITE_SCROLL] - Determines if the 2D map is rotatable or can be scrolled infinitely in the horizontal direction.
44004
- * @param [options.blurActiveElementOnCanvasFocus = true] - If true, the active element will blur when the viewer's canvas is clicked. Setting this to false is useful for cases when the canvas is clicked only for retrieving position or an entity data without actually meaning to set the canvas to be the active element.
44178
+ * @param [options.blurActiveElementOnCanvasFocus = true] - If true, the active element will blur when the widget's canvas is clicked. Setting this to false is useful for cases when the canvas is clicked only for retrieving position or an entity data without actually meaning to set the canvas to be the active element.
44005
44179
  * @param [options.requestRenderMode = false] - If true, rendering a frame will only occur when needed as determined by changes within the scene. Enabling improves performance of the application, but requires using {@link Scene#requestRender} to render a new frame explicitly in this mode. This will be necessary in many cases after making changes to the scene in other parts of the API. See {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
44006
44180
  * @param [options.maximumRenderTimeChange = 0.0] - If requestRenderMode is true, this value defines the maximum change in simulation time allowed before a render is requested. See {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
44007
44181
  * @param [options.msaaSamples = 4] - If provided, this value controls the rate of multisample antialiasing. Typical multisampling rates are 2, 4, and sometimes 8 samples per pixel. Higher sampling rates of MSAA may impact performance in exchange for improved visual quality. This value only applies to WebGL2 contexts that support multisample render targets. Set to 1 to disable MSAA.
@@ -44009,6 +44183,7 @@ export function createWorldImageryAsync(options?: {
44009
44183
  export class CesiumWidget {
44010
44184
  constructor(container: Element | string, options?: {
44011
44185
  clock?: Clock;
44186
+ shouldAnimate?: boolean;
44012
44187
  ellipsoid?: Ellipsoid;
44013
44188
  baseLayer?: ImageryLayer | false;
44014
44189
  terrainProvider?: TerrainProvider;
@@ -44024,9 +44199,11 @@ export class CesiumWidget {
44024
44199
  useBrowserRecommendedResolution?: boolean;
44025
44200
  targetFrameRate?: number;
44026
44201
  showRenderLoopErrors?: boolean;
44202
+ automaticallyTrackDataSourceClocks?: boolean;
44027
44203
  contextOptions?: ContextOptions;
44028
44204
  creditContainer?: Element | string;
44029
44205
  creditViewport?: Element | string;
44206
+ dataSources?: DataSourceCollection;
44030
44207
  shadows?: boolean;
44031
44208
  terrainShadows?: ShadowMode;
44032
44209
  mapMode2D?: MapMode2D;
@@ -44067,6 +44244,19 @@ export class CesiumWidget {
44067
44244
  * Manages the list of credits to display on screen and in the lightbox.
44068
44245
  */
44069
44246
  creditDisplay: CreditDisplay;
44247
+ /**
44248
+ * Gets the display used for {@link DataSource} visualization.
44249
+ */
44250
+ readonly dataSourceDisplay: DataSourceDisplay;
44251
+ /**
44252
+ * Gets the collection of entities not tied to a particular data source.
44253
+ * This is a shortcut to [dataSourceDisplay.defaultDataSource.entities]{@link CesiumWidget#dataSourceDisplay}.
44254
+ */
44255
+ readonly entities: EntityCollection;
44256
+ /**
44257
+ * Gets the set of {@link DataSource} instances to be visualized.
44258
+ */
44259
+ readonly dataSources: DataSourceCollection;
44070
44260
  /**
44071
44261
  * Gets the camera.
44072
44262
  */
@@ -44120,6 +44310,25 @@ export class CesiumWidget {
44120
44310
  * this flag is true or false.
44121
44311
  */
44122
44312
  useBrowserRecommendedResolution: boolean;
44313
+ /**
44314
+ * Gets or sets whether or not data sources can temporarily pause
44315
+ * animation in order to avoid showing an incomplete picture to the user.
44316
+ * For example, if asynchronous primitives are being processed in the
44317
+ * background, the clock will not advance until the geometry is ready.
44318
+ */
44319
+ allowDataSourcesToSuspendAnimation: boolean;
44320
+ /**
44321
+ * Gets or sets the Entity instance currently being tracked by the camera.
44322
+ */
44323
+ trackedEntity: Entity | undefined;
44324
+ /**
44325
+ * Gets the event that is raised when the tracked entity changes.
44326
+ */
44327
+ readonly trackedEntityChanged: Event;
44328
+ /**
44329
+ * Gets or sets the data source to track with the widget's clock.
44330
+ */
44331
+ clockTrackedDataSource: DataSource;
44123
44332
  /**
44124
44333
  * Show an error panel to the user containing a title and a longer error message,
44125
44334
  * which can be dismissed using an OK button. This panel is displayed automatically
@@ -44150,6 +44359,51 @@ export class CesiumWidget {
44150
44359
  * unless <code>useDefaultRenderLoop</code> is set to false;
44151
44360
  */
44152
44361
  render(): void;
44362
+ /**
44363
+ * Asynchronously sets the camera to view the provided entity, entities, or data source.
44364
+ * If the data source is still in the process of loading or the visualization is otherwise still loading,
44365
+ * this method waits for the data to be ready before performing the zoom.
44366
+ *
44367
+ * <p>The offset is heading/pitch/range in the local east-north-up reference frame centered at the center of the bounding sphere.
44368
+ * The heading and the pitch angles are defined in the local east-north-up reference frame.
44369
+ * The heading is the angle from y axis and increasing towards the x axis. Pitch is the rotation from the xy-plane. Positive pitch
44370
+ * angles are above the plane. Negative pitch angles are below the plane. The range is the distance from the center. If the range is
44371
+ * zero, a range will be computed such that the whole bounding sphere is visible.</p>
44372
+ *
44373
+ * <p>In 2D, there must be a top down view. The camera will be placed above the target looking down. The height above the
44374
+ * target will be the range. The heading will be determined from the offset. If the heading cannot be
44375
+ * determined from the offset, the heading will be north.</p>
44376
+ * @param target - The entity, array of entities, entity collection, data source, Cesium3DTileset, point cloud, or imagery layer to view. You can also pass a promise that resolves to one of the previously mentioned types.
44377
+ * @param [offset] - The offset from the center of the entity in the local east-north-up reference frame.
44378
+ * @returns A Promise that resolves to true if the zoom was successful or false if the target is not currently visualized in the scene or the zoom was cancelled.
44379
+ */
44380
+ zoomTo(target: Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | Promise<Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | VoxelPrimitive>, offset?: HeadingPitchRange): Promise<boolean>;
44381
+ /**
44382
+ * Flies the camera to the provided entity, entities, or data source.
44383
+ * If the data source is still in the process of loading or the visualization is otherwise still loading,
44384
+ * this method waits for the data to be ready before performing the flight.
44385
+ *
44386
+ * <p>The offset is heading/pitch/range in the local east-north-up reference frame centered at the center of the bounding sphere.
44387
+ * The heading and the pitch angles are defined in the local east-north-up reference frame.
44388
+ * The heading is the angle from y axis and increasing towards the x axis. Pitch is the rotation from the xy-plane. Positive pitch
44389
+ * angles are above the plane. Negative pitch angles are below the plane. The range is the distance from the center. If the range is
44390
+ * zero, a range will be computed such that the whole bounding sphere is visible.</p>
44391
+ *
44392
+ * <p>In 2D, there must be a top down view. The camera will be placed above the target looking down. The height above the
44393
+ * target will be the range. The heading will be determined from the offset. If the heading cannot be
44394
+ * determined from the offset, the heading will be north.</p>
44395
+ * @param target - The entity, array of entities, entity collection, data source, Cesium3DTileset, point cloud, or imagery layer to view. You can also pass a promise that resolves to one of the previously mentioned types.
44396
+ * @param [options] - Object with the following properties:
44397
+ * @param [options.duration = 3.0] - The duration of the flight in seconds.
44398
+ * @param [options.maximumHeight] - The maximum height at the peak of the flight.
44399
+ * @param [options.offset] - The offset from the target in the local east-north-up reference frame centered at the target.
44400
+ * @returns A Promise that resolves to true if the flight was successful or false if the target is not currently visualized in the scene or the flight was cancelled. //TODO: Cleanup entity mentions
44401
+ */
44402
+ flyTo(target: Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | Promise<Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | VoxelPrimitive>, options?: {
44403
+ duration?: number;
44404
+ maximumHeight?: number;
44405
+ offset?: HeadingPitchRange;
44406
+ }): Promise<boolean>;
44153
44407
  }
44154
44408
 
44155
44409
 
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- globalThis.CESIUM_VERSION = "1.122";
1
+ globalThis.CESIUM_VERSION = "1.123";
2
2
  export { default as AutomaticUniforms } from './Source/Renderer/AutomaticUniforms.js';
3
3
  export { default as Buffer } from './Source/Renderer/Buffer.js';
4
4
  export { default as BufferUsage } from './Source/Renderer/BufferUsage.js';
@@ -149,6 +149,7 @@ export { default as createRawPropertyDescriptor } from './Source/DataSources/cre
149
149
  export { default as exportKml } from './Source/DataSources/exportKml.js';
150
150
  export { default as getElement } from './Source/DataSources/getElement.js';
151
151
  export { default as heightReferenceOnEntityPropertyChanged } from './Source/DataSources/heightReferenceOnEntityPropertyChanged.js';
152
+ export { default as CesiumWidget } from './Source/Widget/CesiumWidget.js';
152
153
  export { default as _shadersAdjustTranslucentFS } from './Source/Shaders/AdjustTranslucentFS.js';
153
154
  export { default as _shadersAtmosphereCommon } from './Source/Shaders/AtmosphereCommon.js';
154
155
  export { default as _shadersBillboardCollectionFS } from './Source/Shaders/BillboardCollectionFS.js';
@@ -160,6 +161,10 @@ export { default as _shadersCloudNoiseFS } from './Source/Shaders/CloudNoiseFS.j
160
161
  export { default as _shadersCloudNoiseVS } from './Source/Shaders/CloudNoiseVS.js';
161
162
  export { default as _shadersCompareAndPackTranslucentDepth } from './Source/Shaders/CompareAndPackTranslucentDepth.js';
162
163
  export { default as _shadersCompositeOITFS } from './Source/Shaders/CompositeOITFS.js';
164
+ export { default as _shadersComputeIrradianceFS } from './Source/Shaders/ComputeIrradianceFS.js';
165
+ export { default as _shadersComputeRadianceMapFS } from './Source/Shaders/ComputeRadianceMapFS.js';
166
+ export { default as _shadersConvolveSpecularMapFS } from './Source/Shaders/ConvolveSpecularMapFS.js';
167
+ export { default as _shadersConvolveSpecularMapVS } from './Source/Shaders/ConvolveSpecularMapVS.js';
163
168
  export { default as _shadersDepthPlaneFS } from './Source/Shaders/DepthPlaneFS.js';
164
169
  export { default as _shadersDepthPlaneVS } from './Source/Shaders/DepthPlaneVS.js';
165
170
  export { default as _shadersEllipsoidFS } from './Source/Shaders/EllipsoidFS.js';
@@ -197,7 +202,6 @@ export { default as _shadersVector3DTilePolylinesVS } from './Source/Shaders/Vec
197
202
  export { default as _shadersVectorTileVS } from './Source/Shaders/VectorTileVS.js';
198
203
  export { default as _shadersViewportQuadFS } from './Source/Shaders/ViewportQuadFS.js';
199
204
  export { default as _shadersViewportQuadVS } from './Source/Shaders/ViewportQuadVS.js';
200
- export { default as CesiumWidget } from './Source/Widget/CesiumWidget.js';
201
205
  export { default as ApproximateTerrainHeights } from './Source/Core/ApproximateTerrainHeights.js';
202
206
  export { default as ArcGISTiledElevationTerrainProvider } from './Source/Core/ArcGISTiledElevationTerrainProvider.js';
203
207
  export { default as ArcType } from './Source/Core/ArcType.js';
@@ -562,6 +566,7 @@ export { default as DiscardEmptyTileImagePolicy } from './Source/Scene/DiscardEm
562
566
  export { default as DiscardMissingTileImagePolicy } from './Source/Scene/DiscardMissingTileImagePolicy.js';
563
567
  export { default as DracoLoader } from './Source/Scene/DracoLoader.js';
564
568
  export { default as DynamicAtmosphereLightingType } from './Source/Scene/DynamicAtmosphereLightingType.js';
569
+ export { default as DynamicEnvironmentMapManager } from './Source/Scene/DynamicEnvironmentMapManager.js';
565
570
  export { default as EllipsoidPrimitive } from './Source/Scene/EllipsoidPrimitive.js';
566
571
  export { default as EllipsoidSurfaceAppearance } from './Source/Scene/EllipsoidSurfaceAppearance.js';
567
572
  export { default as Empty3DTileContent } from './Source/Scene/Empty3DTileContent.js';
@@ -1058,14 +1063,6 @@ export { default as _shaderssolarRadius } from './Source/Shaders/Builtin/Constan
1058
1063
  export { default as _shadersthreePiOver2 } from './Source/Shaders/Builtin/Constants/threePiOver2.js';
1059
1064
  export { default as _shaderstwoPi } from './Source/Shaders/Builtin/Constants/twoPi.js';
1060
1065
  export { default as _shaderswebMercatorMaxLatitude } from './Source/Shaders/Builtin/Constants/webMercatorMaxLatitude.js';
1061
- export { default as _shadersdepthRangeStruct } from './Source/Shaders/Builtin/Structs/depthRangeStruct.js';
1062
- export { default as _shadersmaterial } from './Source/Shaders/Builtin/Structs/material.js';
1063
- export { default as _shadersmaterialInput } from './Source/Shaders/Builtin/Structs/materialInput.js';
1064
- export { default as _shadersmodelMaterial } from './Source/Shaders/Builtin/Structs/modelMaterial.js';
1065
- export { default as _shadersmodelVertexOutput } from './Source/Shaders/Builtin/Structs/modelVertexOutput.js';
1066
- export { default as _shadersray } from './Source/Shaders/Builtin/Structs/ray.js';
1067
- export { default as _shadersraySegment } from './Source/Shaders/Builtin/Structs/raySegment.js';
1068
- export { default as _shadersshadowParameters } from './Source/Shaders/Builtin/Structs/shadowParameters.js';
1069
1066
  export { default as _shadersHSBToRGB } from './Source/Shaders/Builtin/Functions/HSBToRGB.js';
1070
1067
  export { default as _shadersHSLToRGB } from './Source/Shaders/Builtin/Functions/HSLToRGB.js';
1071
1068
  export { default as _shadersRGBToHSB } from './Source/Shaders/Builtin/Functions/RGBToHSB.js';
@@ -1156,6 +1153,14 @@ export { default as _shaderswindowToEyeCoordinates } from './Source/Shaders/Buil
1156
1153
  export { default as _shaderswriteDepthClamp } from './Source/Shaders/Builtin/Functions/writeDepthClamp.js';
1157
1154
  export { default as _shaderswriteLogDepth } from './Source/Shaders/Builtin/Functions/writeLogDepth.js';
1158
1155
  export { default as _shaderswriteNonPerspective } from './Source/Shaders/Builtin/Functions/writeNonPerspective.js';
1156
+ export { default as _shadersdepthRangeStruct } from './Source/Shaders/Builtin/Structs/depthRangeStruct.js';
1157
+ export { default as _shadersmaterial } from './Source/Shaders/Builtin/Structs/material.js';
1158
+ export { default as _shadersmaterialInput } from './Source/Shaders/Builtin/Structs/materialInput.js';
1159
+ export { default as _shadersmodelMaterial } from './Source/Shaders/Builtin/Structs/modelMaterial.js';
1160
+ export { default as _shadersmodelVertexOutput } from './Source/Shaders/Builtin/Structs/modelVertexOutput.js';
1161
+ export { default as _shadersray } from './Source/Shaders/Builtin/Structs/ray.js';
1162
+ export { default as _shadersraySegment } from './Source/Shaders/Builtin/Structs/raySegment.js';
1163
+ export { default as _shadersshadowParameters } from './Source/Shaders/Builtin/Structs/shadowParameters.js';
1159
1164
  export { default as AnchorPointDirect } from './Source/Scene/Model/Extensions/Gpm/AnchorPointDirect.js';
1160
1165
  export { default as AnchorPointIndirect } from './Source/Scene/Model/Extensions/Gpm/AnchorPointIndirect.js';
1161
1166
  export { default as CorrelationGroup } from './Source/Scene/Model/Extensions/Gpm/CorrelationGroup.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cesium/engine",
3
- "version": "11.1.0",
3
+ "version": "12.0.0",
4
4
  "description": "CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.",
5
5
  "keywords": [
6
6
  "3D",
@@ -45,7 +45,7 @@
45
45
  "ktx-parse": "^0.7.0",
46
46
  "lerc": "^2.0.0",
47
47
  "mersenne-twister": "^1.1.0",
48
- "meshoptimizer": "^0.21.0",
48
+ "meshoptimizer": "^0.22.0",
49
49
  "pako": "^2.0.4",
50
50
  "protobufjs": "^7.1.0",
51
51
  "rbush": "3.0.1",