@cesium/engine 11.1.0 → 12.0.1

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-U72QNFOJ.js → chunk-22FZ334F.js} +10 -10
  2. package/Build/Workers/{chunk-GNBFYG7F.js → chunk-2F42VIW6.js} +13 -13
  3. package/Build/Workers/{chunk-K4GQUNB5.js → chunk-2IJZVFHY.js} +5 -5
  4. package/Build/Workers/{chunk-7KTQP4VB.js → chunk-2XOUWNPN.js} +5 -5
  5. package/Build/Workers/{chunk-IBLIYJZR.js → chunk-3Y4UGAYI.js} +6 -6
  6. package/Build/Workers/{chunk-VJZB3WAV.js → chunk-54NYY4U4.js} +7 -7
  7. package/Build/Workers/{chunk-DHYHSFFJ.js → chunk-647NL6VU.js} +2 -2
  8. package/Build/Workers/{chunk-CKY7HOHV.js → chunk-76KRKKEF.js} +9 -9
  9. package/Build/Workers/{chunk-BHQJ2NT7.js → chunk-7CKQ7PVJ.js} +6 -6
  10. package/Build/Workers/{chunk-5PTXS2GO.js → chunk-7D6T2WYT.js} +7 -7
  11. package/Build/Workers/{chunk-PRGYLLJT.js → chunk-7EBHNJTG.js} +1 -1
  12. package/Build/Workers/{chunk-YFXQECWV.js → chunk-AER5CLXD.js} +5 -5
  13. package/Build/Workers/{chunk-N5KJGGCM.js → chunk-AGYO4ZSF.js} +17 -17
  14. package/Build/Workers/{chunk-VU2MNO7L.js → chunk-BH5M522L.js} +7 -7
  15. package/Build/Workers/{chunk-MXIZJAPH.js → chunk-COHL4R3G.js} +1 -1
  16. package/Build/Workers/{chunk-FIGIZHAQ.js → chunk-DJ7K7EYK.js} +11 -11
  17. package/Build/Workers/{chunk-3Q2L65QU.js → chunk-DR56WFYZ.js} +7 -7
  18. package/Build/Workers/{chunk-AD63PIY6.js → chunk-EMCXAVSG.js} +2 -2
  19. package/Build/Workers/{chunk-YSGTGQQO.js → chunk-ENARO52I.js} +14 -14
  20. package/Build/Workers/{chunk-5OOFQLKF.js → chunk-ETXXXGMP.js} +7 -7
  21. package/Build/Workers/{chunk-E27BLMDD.js → chunk-GBPW65E3.js} +6 -6
  22. package/Build/Workers/{chunk-NGPPMXRM.js → chunk-GRQQHWMD.js} +7 -7
  23. package/Build/Workers/{chunk-SMDOP47J.js → chunk-GSJ6LWIS.js} +10 -10
  24. package/Build/Workers/{chunk-26GA3JAM.js → chunk-H3RMGG7L.js} +5 -5
  25. package/Build/Workers/{chunk-PGRPDNHG.js → chunk-IAX6MIST.js} +17 -17
  26. package/Build/Workers/{chunk-5ODQSF26.js → chunk-IJWXYSFC.js} +2 -2
  27. package/Build/Workers/{chunk-C6YYBQXW.js → chunk-IVCFTVYW.js} +4 -4
  28. package/Build/Workers/{chunk-JW4FOI6M.js → chunk-JAKTB6CE.js} +11 -11
  29. package/Build/Workers/{chunk-TKVT5GQM.js → chunk-JPNFQRN7.js} +13 -13
  30. package/Build/Workers/{chunk-E63IIM5T.js → chunk-K7QC3WDT.js} +1 -1
  31. package/Build/Workers/{chunk-TGONEMZO.js → chunk-KJ65M35B.js} +11 -11
  32. package/Build/Workers/{chunk-2ZGOQXYU.js → chunk-KKMH4BKN.js} +6 -6
  33. package/Build/Workers/{chunk-76BYBWHP.js → chunk-LBNGHEJY.js} +4 -4
  34. package/Build/Workers/{chunk-XY4BATBS.js → chunk-LVHHB5T6.js} +4 -4
  35. package/Build/Workers/{chunk-S6MRMMQU.js → chunk-MV7YO647.js} +6 -6
  36. package/Build/Workers/{chunk-6CHGCNMW.js → chunk-NELAPOO6.js} +2 -2
  37. package/Build/Workers/{chunk-GESF4OXQ.js → chunk-NL73INJS.js} +2 -2
  38. package/Build/Workers/{chunk-GGZJN2TI.js → chunk-PH3T7LNP.js} +15 -15
  39. package/Build/Workers/{chunk-YZ733KKS.js → chunk-PISTPJXS.js} +12 -12
  40. package/Build/Workers/{chunk-GWCFU2SA.js → chunk-PJHRB4YJ.js} +7 -7
  41. package/Build/Workers/{chunk-I2ITFFPX.js → chunk-PNA47CR7.js} +1 -1
  42. package/Build/Workers/{chunk-7JO7GPJN.js → chunk-Q7IIOKAT.js} +1 -1
  43. package/Build/Workers/{chunk-27HUZ7SA.js → chunk-U7SH6OK7.js} +4 -4
  44. package/Build/Workers/{chunk-M3GMB5OP.js → chunk-VHGI7D3P.js} +10 -10
  45. package/Build/Workers/{chunk-FDOV2LBJ.js → chunk-VO4SXJXT.js} +7 -7
  46. package/Build/Workers/{chunk-7BMOHCPM.js → chunk-VXVQITFC.js} +13 -13
  47. package/Build/Workers/{chunk-DI5NGJUP.js → chunk-WMHJAREU.js} +2 -2
  48. package/Build/Workers/{chunk-EJZTDTUH.js → chunk-X6YBZOOA.js} +4 -4
  49. package/Build/Workers/{chunk-472HQ3EH.js → chunk-XDJ7V4NZ.js} +5 -5
  50. package/Build/Workers/{chunk-E6V6SQZW.js → chunk-YT5PQMSP.js} +6 -6
  51. package/Build/Workers/{chunk-O3E4OAOE.js → chunk-ZCCI55EY.js} +13 -13
  52. package/Build/Workers/{chunk-7O373FFS.js → chunk-ZPTNVB3S.js} +8 -8
  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 +894 -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 +281 -12
  158. package/index.js +62 -57
  159. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.122
4
+ * Version 1.123.1
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,27 +25,27 @@
25
25
 
26
26
  import {
27
27
  require_draco_decoder_nodejs
28
- } from "./chunk-GESF4OXQ.js";
28
+ } from "./chunk-NL73INJS.js";
29
29
  import {
30
30
  createTaskProcessorWorker_default
31
- } from "./chunk-5ODQSF26.js";
31
+ } from "./chunk-IJWXYSFC.js";
32
32
  import {
33
33
  IndexDatatype_default
34
- } from "./chunk-26GA3JAM.js";
34
+ } from "./chunk-H3RMGG7L.js";
35
35
  import {
36
36
  ComponentDatatype_default
37
- } from "./chunk-K4GQUNB5.js";
38
- import "./chunk-XY4BATBS.js";
39
- import "./chunk-MXIZJAPH.js";
37
+ } from "./chunk-2IJZVFHY.js";
38
+ import "./chunk-LVHHB5T6.js";
39
+ import "./chunk-COHL4R3G.js";
40
40
  import {
41
41
  RuntimeError_default
42
- } from "./chunk-6CHGCNMW.js";
43
- import "./chunk-7JO7GPJN.js";
44
- import "./chunk-AD63PIY6.js";
42
+ } from "./chunk-NELAPOO6.js";
43
+ import "./chunk-Q7IIOKAT.js";
44
+ import "./chunk-EMCXAVSG.js";
45
45
  import {
46
46
  __toESM,
47
47
  defined_default
48
- } from "./chunk-E63IIM5T.js";
48
+ } from "./chunk-K7QC3WDT.js";
49
49
 
50
50
  // packages/engine/Source/Workers/decodeDraco.js
51
51
  var import_draco_decoder_nodejs = __toESM(require_draco_decoder_nodejs(), 1);
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.122
4
+ * Version 1.123.1
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,18 +25,18 @@
25
25
 
26
26
  import {
27
27
  createTaskProcessorWorker_default
28
- } from "./chunk-5ODQSF26.js";
28
+ } from "./chunk-IJWXYSFC.js";
29
29
  import {
30
30
  RuntimeError_default
31
- } from "./chunk-6CHGCNMW.js";
31
+ } from "./chunk-NELAPOO6.js";
32
32
  import {
33
33
  Check_default
34
- } from "./chunk-AD63PIY6.js";
34
+ } from "./chunk-EMCXAVSG.js";
35
35
  import {
36
36
  __commonJS,
37
37
  __toESM,
38
38
  defined_default
39
- } from "./chunk-E63IIM5T.js";
39
+ } from "./chunk-K7QC3WDT.js";
40
40
 
41
41
  // node_modules/pako/lib/zlib/adler32.js
42
42
  var require_adler32 = __commonJS({
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.122
4
+ * Version 1.123.1
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,35 +25,35 @@
25
25
 
26
26
  import {
27
27
  require_draco_decoder_nodejs
28
- } from "./chunk-GESF4OXQ.js";
28
+ } from "./chunk-NL73INJS.js";
29
29
  import {
30
30
  Color_default
31
- } from "./chunk-5OOFQLKF.js";
31
+ } from "./chunk-ETXXXGMP.js";
32
32
  import {
33
33
  createTaskProcessorWorker_default
34
- } from "./chunk-5ODQSF26.js";
34
+ } from "./chunk-IJWXYSFC.js";
35
35
  import {
36
36
  WebMercatorProjection_default
37
- } from "./chunk-E27BLMDD.js";
37
+ } from "./chunk-GBPW65E3.js";
38
38
  import {
39
39
  Cartesian3_default,
40
40
  Cartographic_default,
41
41
  Ellipsoid_default,
42
42
  Matrix3_default
43
- } from "./chunk-YFXQECWV.js";
43
+ } from "./chunk-AER5CLXD.js";
44
44
  import {
45
45
  Math_default
46
- } from "./chunk-XY4BATBS.js";
46
+ } from "./chunk-LVHHB5T6.js";
47
47
  import {
48
48
  defaultValue_default
49
- } from "./chunk-7JO7GPJN.js";
49
+ } from "./chunk-Q7IIOKAT.js";
50
50
  import {
51
51
  Check_default
52
- } from "./chunk-AD63PIY6.js";
52
+ } from "./chunk-EMCXAVSG.js";
53
53
  import {
54
54
  __toESM,
55
55
  defined_default
56
- } from "./chunk-E63IIM5T.js";
56
+ } from "./chunk-K7QC3WDT.js";
57
57
 
58
58
  // packages/engine/Source/Workers/decodeI3S.js
59
59
  var import_draco_decoder_nodejs = __toESM(require_draco_decoder_nodejs(), 1);
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.122
4
+ * Version 1.123.1
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,25 +25,25 @@
25
25
 
26
26
  import {
27
27
  createTaskProcessorWorker_default
28
- } from "./chunk-5ODQSF26.js";
28
+ } from "./chunk-IJWXYSFC.js";
29
29
  import {
30
30
  WebGLConstants_default
31
- } from "./chunk-MXIZJAPH.js";
31
+ } from "./chunk-COHL4R3G.js";
32
32
  import {
33
33
  RuntimeError_default
34
- } from "./chunk-6CHGCNMW.js";
34
+ } from "./chunk-NELAPOO6.js";
35
35
  import {
36
36
  defaultValue_default
37
- } from "./chunk-7JO7GPJN.js";
37
+ } from "./chunk-Q7IIOKAT.js";
38
38
  import {
39
39
  Check_default
40
- } from "./chunk-AD63PIY6.js";
40
+ } from "./chunk-EMCXAVSG.js";
41
41
  import {
42
42
  __commonJS,
43
43
  __require,
44
44
  __toESM,
45
45
  defined_default
46
- } from "./chunk-E63IIM5T.js";
46
+ } from "./chunk-K7QC3WDT.js";
47
47
 
48
48
  // packages/engine/Source/ThirdParty/Workers/basis_transcoder.js
49
49
  var require_basis_transcoder = __commonJS({
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.122
4
+ * Version 1.123.1
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.122
4
+ * Version 1.123.1
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -26,49 +26,49 @@
26
26
  import {
27
27
  EllipsoidalOccluder_default,
28
28
  TerrainEncoding_default
29
- } from "./chunk-U72QNFOJ.js";
29
+ } from "./chunk-22FZ334F.js";
30
30
  import {
31
31
  createTaskProcessorWorker_default
32
- } from "./chunk-5ODQSF26.js";
32
+ } from "./chunk-IJWXYSFC.js";
33
33
  import {
34
34
  OrientedBoundingBox_default
35
- } from "./chunk-M3GMB5OP.js";
35
+ } from "./chunk-VHGI7D3P.js";
36
36
  import {
37
37
  AttributeCompression_default
38
- } from "./chunk-NGPPMXRM.js";
39
- import "./chunk-CKY7HOHV.js";
40
- import "./chunk-S6MRMMQU.js";
41
- import "./chunk-3Q2L65QU.js";
42
- import "./chunk-2ZGOQXYU.js";
38
+ } from "./chunk-GRQQHWMD.js";
39
+ import "./chunk-76KRKKEF.js";
40
+ import "./chunk-MV7YO647.js";
41
+ import "./chunk-DR56WFYZ.js";
42
+ import "./chunk-KKMH4BKN.js";
43
43
  import {
44
44
  IndexDatatype_default
45
- } from "./chunk-26GA3JAM.js";
45
+ } from "./chunk-H3RMGG7L.js";
46
46
  import {
47
47
  BoundingSphere_default
48
- } from "./chunk-VJZB3WAV.js";
48
+ } from "./chunk-54NYY4U4.js";
49
49
  import {
50
50
  Rectangle_default
51
- } from "./chunk-5PTXS2GO.js";
52
- import "./chunk-K4GQUNB5.js";
51
+ } from "./chunk-7D6T2WYT.js";
52
+ import "./chunk-2IJZVFHY.js";
53
53
  import {
54
54
  Cartesian2_default,
55
55
  Cartesian3_default,
56
56
  Cartographic_default,
57
57
  Ellipsoid_default
58
- } from "./chunk-YFXQECWV.js";
58
+ } from "./chunk-AER5CLXD.js";
59
59
  import {
60
60
  Math_default
61
- } from "./chunk-XY4BATBS.js";
62
- import "./chunk-MXIZJAPH.js";
63
- import "./chunk-6CHGCNMW.js";
64
- import "./chunk-7JO7GPJN.js";
61
+ } from "./chunk-LVHHB5T6.js";
62
+ import "./chunk-COHL4R3G.js";
63
+ import "./chunk-NELAPOO6.js";
64
+ import "./chunk-Q7IIOKAT.js";
65
65
  import {
66
66
  Check_default,
67
67
  DeveloperError_default
68
- } from "./chunk-AD63PIY6.js";
68
+ } from "./chunk-EMCXAVSG.js";
69
69
  import {
70
70
  defined_default
71
- } from "./chunk-E63IIM5T.js";
71
+ } from "./chunk-K7QC3WDT.js";
72
72
 
73
73
  // packages/engine/Source/Core/Intersections2D.js
74
74
  var Intersections2D = {};
@@ -1381,7 +1381,7 @@ BoundingSphere.projectTo2D = function (sphere, projection, result) {
1381
1381
  /**
1382
1382
  * Determines whether or not a sphere is hidden from view by the occluder.
1383
1383
  *
1384
- * @param {BoundingSphere} sphere The bounding sphere surrounding the occludee object.
1384
+ * @param {BoundingSphere} sphere The bounding sphere surrounding the occluded object.
1385
1385
  * @param {Occluder} occluder The occluder.
1386
1386
  * @returns {boolean} <code>true</code> if the sphere is not visible; otherwise <code>false</code>.
1387
1387
  */
@@ -325,7 +325,7 @@ Color.fromRandom = function (options, result) {
325
325
 
326
326
  //>>includeStart('debug', pragmas.debug);
327
327
  Check.typeOf.number.lessThanOrEquals(
328
- "minumumAlpha",
328
+ "minimumAlpha",
329
329
  minimumAlpha,
330
330
  maximumAlpha,
331
331
  );
@@ -256,10 +256,6 @@ CorridorGeometryLibrary.computePositions = function (params) {
256
256
  Cartesian3.subtract(nextPosition, position, forward),
257
257
  forward,
258
258
  );
259
- cornerDirection = Cartesian3.normalize(
260
- Cartesian3.add(forward, backward, cornerDirection),
261
- cornerDirection,
262
- );
263
259
 
264
260
  const forwardProjection = Cartesian3.multiplyByScalar(
265
261
  normal,
@@ -284,6 +280,10 @@ CorridorGeometryLibrary.computePositions = function (params) {
284
280
  );
285
281
 
286
282
  if (doCorner) {
283
+ cornerDirection = Cartesian3.normalize(
284
+ Cartesian3.add(forward, backward, cornerDirection),
285
+ cornerDirection,
286
+ );
287
287
  cornerDirection = Cartesian3.cross(
288
288
  cornerDirection,
289
289
  normal,
@@ -314,7 +314,7 @@ function computeTopBottomAttributes(positions, options, extrude) {
314
314
  function topIndices(numPts) {
315
315
  // numTriangles in half = 3 + 8 + 12 + ... = -1 + 4 + (4 + 4) + (4 + 4 + 4) + ... = -1 + 4 * (1 + 2 + 3 + ...)
316
316
  // = -1 + 4 * ((n * ( n + 1)) / 2)
317
- // total triangles = 2 * numTrangles in half
317
+ // total triangles = 2 * numTriangles in half
318
318
  // indices = total triangles * 3;
319
319
  // Substitute numPts for n above
320
320
 
@@ -421,7 +421,7 @@ EllipsoidGeodesic.prototype.interpolateUsingFraction = function (
421
421
  /**
422
422
  * Provides the location of a point at the indicated distance along the geodesic.
423
423
  *
424
- * @param {number} distance The distance from the inital point to the point of interest along the geodesic
424
+ * @param {number} distance The distance from the initial point to the point of interest along the geodesic
425
425
  * @param {Cartographic} [result] The object in which to store the result.
426
426
  * @returns {Cartographic} The location of the point along the geodesic.
427
427
  *
@@ -45,7 +45,7 @@ function FrustumGeometry(options) {
45
45
  const vertexFormat = defaultValue(options.vertexFormat, VertexFormat.DEFAULT);
46
46
 
47
47
  // This is private because it is used by DebugCameraPrimitive to draw a multi-frustum by
48
- // creating multiple FrustumGeometrys. This way the near plane of one frustum doesn't overlap
48
+ // creating multiple FrustumGeometry objects. This way the near plane of one frustum doesn't overlap
49
49
  // the far plane of another.
50
50
  const drawNearPlane = defaultValue(options._drawNearPlane, true);
51
51
 
@@ -4,7 +4,7 @@ import Resource from "./Resource.js";
4
4
 
5
5
  let defaultTokenCredit;
6
6
  const defaultAccessToken =
7
- "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI1ZjJlYTllMy1kYWRiLTQwYjctOGZhOS02NGJkOTJhYTA1ODUiLCJpZCI6MjU5LCJpYXQiOjE3Mjc3OTI2NzB9.XbfI79d1v3T5OpMl4CznrcBuctSfW1lycPWlt8bq_1A";
7
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiZjBmMDE4Ny05M2JlLTRlMzgtYjIxYi05YmJjM2QwMzJkYWMiLCJpZCI6MjU5LCJpYXQiOjE3MzA0NjY3MDl9.t-7gCGPUe-oGCyCoeXPtYmlMVdgqUQD9mn-Da23yUoI";
8
8
  /**
9
9
  * Default settings for accessing the Cesium ion API.
10
10
  *
@@ -1048,6 +1048,8 @@ CesiumMath.log2 = defaultValue(Math.log2, function log2(number) {
1048
1048
  });
1049
1049
 
1050
1050
  /**
1051
+ * Calculate the fog impact at a given distance. Useful for culling.
1052
+ * Matches the equation in `fog.glsl`
1051
1053
  * @private
1052
1054
  */
1053
1055
  CesiumMath.fog = function (distanceToCamera, density) {
@@ -434,8 +434,6 @@ PolylineVolumeGeometryLibrary.computePositions = function (
434
434
  }
435
435
  forward = Cartesian3.subtract(nextPosition, position, forward);
436
436
  forward = Cartesian3.normalize(forward, forward);
437
- cornerDirection = Cartesian3.add(forward, backward, cornerDirection);
438
- cornerDirection = Cartesian3.normalize(cornerDirection, cornerDirection);
439
437
  surfaceNormal = ellipsoid.geodeticSurfaceNormal(position, surfaceNormal);
440
438
 
441
439
  const forwardProjection = Cartesian3.multiplyByScalar(
@@ -461,6 +459,8 @@ PolylineVolumeGeometryLibrary.computePositions = function (
461
459
  );
462
460
 
463
461
  if (doCorner) {
462
+ cornerDirection = Cartesian3.add(forward, backward, cornerDirection);
463
+ cornerDirection = Cartesian3.normalize(cornerDirection, cornerDirection);
464
464
  cornerDirection = Cartesian3.cross(
465
465
  cornerDirection,
466
466
  surfaceNormal,
@@ -51,7 +51,7 @@ function decodeGoogleEarthEnterpriseData(key, data) {
51
51
  // while we have a full uint64 (8 bytes) left to do
52
52
  // assumes buffer is 64bit aligned (or processor doesn't care)
53
53
  while (dp < dpend64) {
54
- // rotate the key each time through by using the offets 16,0,8,16,0,8,...
54
+ // rotate the key each time through by using the offsets 16,0,8,16,0,8,...
55
55
  off = (off + 8) % 24;
56
56
  kp = off;
57
57
 
@@ -386,7 +386,7 @@ DataSourceDisplay.prototype.getBoundingSphere = function (
386
386
  Check.defined("result", result);
387
387
  //>>includeEnd('debug');
388
388
 
389
- if (!this._ready) {
389
+ if (!this._ready && !allowPartial) {
390
390
  return BoundingSphereState.PENDING;
391
391
  }
392
392
 
@@ -430,6 +430,7 @@ ModelGraphics.prototype.merge = function (source) {
430
430
  this.imageBasedLightingFactor,
431
431
  source.imageBasedLightingFactor,
432
432
  );
433
+
433
434
  this.lightColor = defaultValue(this.lightColor, source.lightColor);
434
435
  this.distanceDisplayCondition = defaultValue(
435
436
  this.distanceDisplayCondition,
@@ -1577,6 +1577,19 @@ const AutomaticUniforms = {
1577
1577
  },
1578
1578
  }),
1579
1579
 
1580
+ /**
1581
+ * An automatic GLSL uniform scalar used to mix a color with the fog color based on the distance to the camera.
1582
+ *
1583
+ * @see czm_fog
1584
+ */
1585
+ czm_fogVisualDensityScalar: new AutomaticUniform({
1586
+ size: 1,
1587
+ datatype: WebGLConstants.FLOAT,
1588
+ getValue: function (uniformState) {
1589
+ return uniformState.fogVisualDensityScalar;
1590
+ },
1591
+ }),
1592
+
1580
1593
  /**
1581
1594
  * An automatic GLSL uniform scalar used to set a minimum brightness when dynamic lighting is applied to fog.
1582
1595
  *
@@ -1,17 +1,24 @@
1
+ import BoxGeometry from "../Core/BoxGeometry.js";
2
+ import Cartesian3 from "../Core/Cartesian3.js";
1
3
  import Check from "../Core/Check.js";
2
4
  import defaultValue from "../Core/defaultValue.js";
3
5
  import defined from "../Core/defined.js";
4
6
  import destroyObject from "../Core/destroyObject.js";
5
7
  import DeveloperError from "../Core/DeveloperError.js";
8
+ import GeometryPipeline from "../Core/GeometryPipeline.js";
6
9
  import CesiumMath from "../Core/Math.js";
7
10
  import PixelFormat from "../Core/PixelFormat.js";
11
+ import VertexFormat from "../Core/VertexFormat.js";
12
+ import BufferUsage from "./BufferUsage.js";
8
13
  import ContextLimits from "./ContextLimits.js";
9
14
  import CubeMapFace from "./CubeMapFace.js";
15
+ import Framebuffer from "./Framebuffer.js";
10
16
  import MipmapHint from "./MipmapHint.js";
11
17
  import PixelDatatype from "./PixelDatatype.js";
12
18
  import Sampler from "./Sampler.js";
13
19
  import TextureMagnificationFilter from "./TextureMagnificationFilter.js";
14
20
  import TextureMinificationFilter from "./TextureMinificationFilter.js";
21
+ import VertexArray from "./VertexArray.js";
15
22
 
16
23
  /**
17
24
  * @typedef CubeMap.BufferSource
@@ -105,7 +112,7 @@ function CubeMap(options) {
105
112
  ({ width, height } = source.positiveX);
106
113
 
107
114
  //>>includeStart('debug', pragmas.debug);
108
- for (const faceName of CubeMap.getFaceNames()) {
115
+ for (const faceName of CubeMap.faceNames()) {
109
116
  const face = source[faceName];
110
117
  if (Number(face.width) !== width || Number(face.height) !== height) {
111
118
  throw new DeveloperError(
@@ -231,19 +238,45 @@ function CubeMap(options) {
231
238
  );
232
239
  }
233
240
 
234
- for (const faceName of CubeMap.getFaceNames()) {
241
+ for (const faceName of CubeMap.faceNames()) {
235
242
  loadFace(this[faceName], source?.[faceName], 0);
236
243
  }
237
244
 
238
245
  gl.bindTexture(textureTarget, null);
239
246
  }
240
247
 
248
+ /**
249
+ * Copy an existing texture to a cubemap face.
250
+ * @param {FrameState} frameState The current rendering frameState
251
+ * @param {Texture} texture Texture being copied
252
+ * @param {CubeMap.FaceName} face The face to which to copy
253
+ * @param {number} [mipLevel=0] The mip level at which to copy
254
+ */
255
+ CubeMap.prototype.copyFace = function (frameState, texture, face, mipLevel) {
256
+ const context = frameState.context;
257
+ const framebuffer = new Framebuffer({
258
+ context: context,
259
+ colorTextures: [texture],
260
+ destroyAttachments: false,
261
+ });
262
+
263
+ framebuffer._bind();
264
+
265
+ this[face].copyMipmapFromFramebuffer(
266
+ 0,
267
+ 0,
268
+ texture.width,
269
+ texture.height,
270
+ defaultValue(mipLevel, 0),
271
+ );
272
+ framebuffer._unBind();
273
+ framebuffer.destroy();
274
+ };
275
+
241
276
  /**
242
277
  * An enum defining the names of the faces of a cube map.
243
- *
244
278
  * @alias {CubeMap.FaceName}
245
279
  * @enum {string}
246
- *
247
280
  * @private
248
281
  */
249
282
  CubeMap.FaceName = Object.freeze({
@@ -255,7 +288,7 @@ CubeMap.FaceName = Object.freeze({
255
288
  NEGATIVEZ: "negativeZ",
256
289
  });
257
290
 
258
- function* makeFacesIterator() {
291
+ function* makeFaceNamesIterator() {
259
292
  yield CubeMap.FaceName.POSITIVEX;
260
293
  yield CubeMap.FaceName.NEGATIVEX;
261
294
  yield CubeMap.FaceName.POSITIVEY;
@@ -266,22 +299,18 @@ function* makeFacesIterator() {
266
299
 
267
300
  /**
268
301
  * Creates an iterator for looping over the cubemap faces.
269
- *
270
302
  * @type {Iterable<CubeMap.FaceName>}
271
- *
272
303
  * @private
273
304
  */
274
- CubeMap.getFaceNames = function () {
275
- return makeFacesIterator();
305
+ CubeMap.faceNames = function () {
306
+ return makeFaceNamesIterator();
276
307
  };
277
308
 
278
309
  /**
279
310
  * Load texel data into one face of a cube map.
280
- *
281
311
  * @param {CubeMapFace} cubeMapFace The face to which texel values will be loaded.
282
312
  * @param {ImageData|HTMLImageElement|HTMLCanvasElement|HTMLVideoElement|CubeMap.BufferSource} [source] The source for texel values to be loaded into the texture.
283
313
  * @param {number} [mipLevel=0] The mip level to which the texel values will be loaded.
284
- *
285
314
  * @private
286
315
  */
287
316
  function loadFace(cubeMapFace, source, mipLevel) {
@@ -361,6 +390,8 @@ function loadFace(cubeMapFace, source, mipLevel) {
361
390
  }
362
391
  }
363
392
 
393
+ CubeMap.loadFace = loadFace;
394
+
364
395
  Object.defineProperties(CubeMap.prototype, {
365
396
  positiveX: {
366
397
  get: function () {
@@ -447,6 +478,29 @@ Object.defineProperties(CubeMap.prototype, {
447
478
  },
448
479
  });
449
480
 
481
+ /**
482
+ * Get a vector representing the cubemap face direction
483
+ * @param {CubeMap.FaceName} face The relevant face
484
+ * @param {Cartesian3} [result] The object onto which to store the result.
485
+ * @returns {Cartesian3} The vector representing the cubemap face direction
486
+ */
487
+ CubeMap.getDirection = function (face, result) {
488
+ switch (face) {
489
+ case CubeMap.FaceName.POSITIVEX:
490
+ return Cartesian3.clone(Cartesian3.UNIT_X, result);
491
+ case CubeMap.FaceName.NEGATIVEX:
492
+ return Cartesian3.negate(Cartesian3.UNIT_X, result);
493
+ case CubeMap.FaceName.POSITIVEY:
494
+ return Cartesian3.clone(Cartesian3.UNIT_Y, result);
495
+ case CubeMap.FaceName.NEGATIVEY:
496
+ return Cartesian3.negate(Cartesian3.UNIT_Y, result);
497
+ case CubeMap.FaceName.POSITIVEZ:
498
+ return Cartesian3.clone(Cartesian3.UNIT_Z, result);
499
+ case CubeMap.FaceName.NEGATIVEZ:
500
+ return Cartesian3.negate(Cartesian3.UNIT_Z, result);
501
+ }
502
+ };
503
+
450
504
  /**
451
505
  * Set up a sampler for use with a cube map.
452
506
  * @param {CubeMap} cubeMap The cube map containing the texture to be sampled by this sampler.
@@ -539,7 +593,7 @@ CubeMap.prototype.loadMipmaps = function (source, skipColorSpaceConversion) {
539
593
  const mipSource = source[i];
540
594
  // mipLevel 0 was the base layer, already loaded when the CubeMap was constructed.
541
595
  const mipLevel = i + 1;
542
- for (const faceName of CubeMap.getFaceNames()) {
596
+ for (const faceName of CubeMap.faceNames()) {
543
597
  loadFace(this[faceName], mipSource[faceName], mipLevel);
544
598
  }
545
599
  }
@@ -592,6 +646,29 @@ CubeMap.prototype.generateMipmap = function (hint) {
592
646
  gl.bindTexture(target, null);
593
647
  };
594
648
 
649
+ /**
650
+ * Create a vertex array that can be used for cubemap shaders.
651
+ * @param {Context} context The rendering context
652
+ * @returns {VertexArray} The created vertex array
653
+ */
654
+ CubeMap.createVertexArray = function (context) {
655
+ const geometry = BoxGeometry.createGeometry(
656
+ BoxGeometry.fromDimensions({
657
+ dimensions: new Cartesian3(2.0, 2.0, 2.0),
658
+ vertexFormat: VertexFormat.POSITION_ONLY,
659
+ }),
660
+ );
661
+ const attributeLocations = (this._attributeLocations =
662
+ GeometryPipeline.createAttributeLocations(geometry));
663
+
664
+ return VertexArray.fromGeometry({
665
+ context: context,
666
+ geometry: geometry,
667
+ attributeLocations: attributeLocations,
668
+ bufferUsage: BufferUsage.STATIC_DRAW,
669
+ });
670
+ };
671
+
595
672
  CubeMap.prototype.isDestroyed = function () {
596
673
  return false;
597
674
  };