@cesium/engine 17.0.0 → 18.0.1-splats.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 (188) hide show
  1. package/Build/ThirdParty/Workers/z-worker-pako.js +1 -1
  2. package/Build/Workers/{chunk-UC7KH56Y.js → chunk-2AXKROJA.js} +5 -5
  3. package/Build/Workers/{chunk-IKDQX7DY.js → chunk-2J5ZZ7CY.js} +4 -4
  4. package/Build/Workers/{chunk-4TIR5UPL.js → chunk-2SYY3UBI.js} +1 -1
  5. package/Build/Workers/{chunk-CC2WKHIW.js → chunk-2WKW3BEB.js} +6 -6
  6. package/Build/Workers/{chunk-CBFJVM6I.js → chunk-2ZO6BCHN.js} +11 -11
  7. package/Build/Workers/{chunk-7PHT4JHA.js → chunk-3UKG5X7F.js} +12 -12
  8. package/Build/Workers/{chunk-PM4Q36WX.js → chunk-4GYIDPXP.js} +9 -9
  9. package/Build/Workers/{chunk-QUFN3GEO.js → chunk-6EP7ED36.js} +3 -3
  10. package/Build/Workers/{chunk-QJTIOB2Z.js → chunk-6QOBORNG.js} +6 -6
  11. package/Build/Workers/{chunk-YE6MDFDA.js → chunk-6WWHK2ER.js} +14 -14
  12. package/Build/Workers/{chunk-RX65FA7X.js → chunk-6Y6TVYHS.js} +7 -7
  13. package/Build/Workers/{chunk-P2N5IDWU.js → chunk-744VWE2U.js} +13 -13
  14. package/Build/Workers/{chunk-LVGYWPEX.js → chunk-7PQ52XCW.js} +4 -4
  15. package/Build/Workers/{chunk-PS3OKVOQ.js → chunk-A5UFJW2M.js} +12 -12
  16. package/Build/Workers/{chunk-CAKU6ZPR.js → chunk-AQKVFTWV.js} +8 -8
  17. package/Build/Workers/{chunk-236N6BJN.js → chunk-BKTEHJFD.js} +2 -2
  18. package/Build/Workers/{chunk-5PC577K7.js → chunk-CQXYKPAW.js} +16 -16
  19. package/Build/Workers/{chunk-DRMXU674.js → chunk-DI7PHKC6.js} +5 -5
  20. package/Build/Workers/{chunk-CQMXZF4A.js → chunk-DKKIQS6F.js} +6 -6
  21. package/Build/Workers/{chunk-J2HTPGC7.js → chunk-DTVWE5YL.js} +2 -2
  22. package/Build/Workers/{chunk-SSLK4U3V.js → chunk-ERPS2WZC.js} +4 -4
  23. package/Build/Workers/chunk-EYMZ5FSQ.js +280 -0
  24. package/Build/Workers/{chunk-LPGOAMYH.js → chunk-F43TQW5B.js} +2 -2
  25. package/Build/Workers/{chunk-5RPUEFSA.js → chunk-FOMRN6II.js} +6 -6
  26. package/Build/Workers/{chunk-2BJXFXD7.js → chunk-FOTXJYKS.js} +4 -4
  27. package/Build/Workers/{chunk-VXAKU6EV.js → chunk-G2Y7EA4W.js} +5 -5
  28. package/Build/Workers/{chunk-KE45DUDH.js → chunk-GY4E4ZP6.js} +10 -10
  29. package/Build/Workers/{chunk-NZSBSY5K.js → chunk-HDG3VHYL.js} +2 -2
  30. package/Build/Workers/{chunk-WP3IJYLC.js → chunk-HOEUXPBL.js} +9 -9
  31. package/Build/Workers/{chunk-5YEFZMMM.js → chunk-IWDYVJ56.js} +12 -12
  32. package/Build/Workers/{chunk-SQKTLDSD.js → chunk-JA4KPQJL.js} +12 -12
  33. package/Build/Workers/{chunk-MAIKDIBS.js → chunk-JZZQEZMA.js} +6 -6
  34. package/Build/Workers/{chunk-77MDEA47.js → chunk-KPLU3WDY.js} +5 -5
  35. package/Build/Workers/{chunk-E7SMO47Q.js → chunk-LHM6V4D6.js} +5 -5
  36. package/Build/Workers/{chunk-HBNWBMAM.js → chunk-LMTGCD6P.js} +1 -1
  37. package/Build/Workers/{chunk-XYGBWBD5.js → chunk-LWZOYSSF.js} +1 -1
  38. package/Build/Workers/{chunk-OBHLT34A.js → chunk-M6U7SV4T.js} +7 -7
  39. package/Build/Workers/{chunk-MS5NWDHH.js → chunk-O25M56DO.js} +2 -2
  40. package/Build/Workers/{chunk-UX5JWAC7.js → chunk-OE2WXO2Z.js} +10 -10
  41. package/Build/Workers/{chunk-C5DCX2YQ.js → chunk-PFD462OE.js} +6 -6
  42. package/Build/Workers/{chunk-37PA7GZW.js → chunk-PPI33PXH.js} +7 -7
  43. package/Build/Workers/{chunk-4BGKMM7J.js → chunk-PRQQHLUB.js} +1 -1
  44. package/Build/Workers/{chunk-IFIS4CVK.js → chunk-RTUZ7MJB.js} +2 -2
  45. package/Build/Workers/{chunk-G6JUXZUO.js → chunk-S6QBTP5U.js} +4 -4
  46. package/Build/Workers/{chunk-UFV3YUIN.js → chunk-SMFCIGM3.js} +5 -5
  47. package/Build/Workers/{chunk-P57PR3WM.js → chunk-TC3LEKFJ.js} +5 -5
  48. package/Build/Workers/{chunk-7IIMO7ZZ.js → chunk-UTLYCPFY.js} +16 -16
  49. package/Build/Workers/{chunk-HGEGZ67N.js → chunk-V7LEBY53.js} +6 -6
  50. package/Build/Workers/{chunk-GO3RZX2R.js → chunk-VE3UKRDB.js} +9 -9
  51. package/Build/Workers/{chunk-ZTBZMRQT.js → chunk-W3FBD4FE.js} +8 -8
  52. package/Build/Workers/{chunk-K5JTWJPE.js → chunk-YRR6CJGG.js} +4 -4
  53. package/Build/Workers/{chunk-UZ6KXWCA.js → chunk-ZVTKMLU6.js} +4 -4
  54. package/Build/Workers/combineGeometry.js +21 -21
  55. package/Build/Workers/createBoxGeometry.js +15 -15
  56. package/Build/Workers/createBoxOutlineGeometry.js +13 -13
  57. package/Build/Workers/createCircleGeometry.js +23 -23
  58. package/Build/Workers/createCircleOutlineGeometry.js +16 -16
  59. package/Build/Workers/createCoplanarPolygonGeometry.js +30 -30
  60. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +28 -28
  61. package/Build/Workers/createCorridorGeometry.js +26 -26
  62. package/Build/Workers/createCorridorOutlineGeometry.js +25 -25
  63. package/Build/Workers/createCylinderGeometry.js +17 -17
  64. package/Build/Workers/createCylinderOutlineGeometry.js +15 -15
  65. package/Build/Workers/createEllipseGeometry.js +23 -23
  66. package/Build/Workers/createEllipseOutlineGeometry.js +16 -16
  67. package/Build/Workers/createEllipsoidGeometry.js +16 -16
  68. package/Build/Workers/createEllipsoidOutlineGeometry.js +15 -15
  69. package/Build/Workers/createFrustumGeometry.js +15 -15
  70. package/Build/Workers/createFrustumOutlineGeometry.js +15 -15
  71. package/Build/Workers/createGeometry.js +23 -21
  72. package/Build/Workers/createGroundPolylineGeometry.js +19 -19
  73. package/Build/Workers/createPlaneGeometry.js +13 -13
  74. package/Build/Workers/createPlaneOutlineGeometry.js +12 -12
  75. package/Build/Workers/createPolygonGeometry.js +29 -29
  76. package/Build/Workers/createPolygonOutlineGeometry.js +27 -27
  77. package/Build/Workers/createPolylineGeometry.js +22 -22
  78. package/Build/Workers/createPolylineVolumeGeometry.js +28 -28
  79. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +24 -24
  80. package/Build/Workers/createRectangleGeometry.js +24 -24
  81. package/Build/Workers/createRectangleOutlineGeometry.js +17 -17
  82. package/Build/Workers/createSimplePolylineGeometry.js +20 -20
  83. package/Build/Workers/createSphereGeometry.js +16 -16
  84. package/Build/Workers/createSphereOutlineGeometry.js +15 -15
  85. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  86. package/Build/Workers/createVectorTileClampedPolylines.js +12 -12
  87. package/Build/Workers/createVectorTileGeometries.js +21 -21
  88. package/Build/Workers/createVectorTilePoints.js +11 -11
  89. package/Build/Workers/createVectorTilePolygons.js +19 -19
  90. package/Build/Workers/createVectorTilePolylines.js +12 -12
  91. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +19 -19
  92. package/Build/Workers/createVerticesFromHeightmap.js +19 -19
  93. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +16 -16
  94. package/Build/Workers/createWallGeometry.js +21 -21
  95. package/Build/Workers/createWallOutlineGeometry.js +20 -20
  96. package/Build/Workers/decodeDraco.js +10 -10
  97. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
  98. package/Build/Workers/decodeI3S.js +9 -9
  99. package/Build/Workers/gaussianSplatSorter.js +62 -0
  100. package/Build/Workers/gaussianSplatTextureGenerator.js +68 -0
  101. package/Build/Workers/transcodeKTX2.js +78 -7
  102. package/Build/Workers/transferTypedArrayTest.js +1 -1
  103. package/Build/Workers/upsampleQuantizedTerrainMesh.js +19 -19
  104. package/Source/Core/Ion.js +1 -1
  105. package/Source/Core/PixelFormat.js +98 -0
  106. package/Source/Renderer/Context.js +2 -0
  107. package/Source/Renderer/Pass.js +3 -2
  108. package/Source/Renderer/Texture.js +1 -0
  109. package/Source/Renderer/Texture3D.js +568 -0
  110. package/Source/Renderer/VertexArray.js +33 -8
  111. package/Source/Renderer/createUniform.js +3 -0
  112. package/Source/Renderer/createUniformArray.js +1 -0
  113. package/Source/Scene/ArcGisMapService.js +1 -1
  114. package/Source/Scene/Cesium3DTileContentFactory.js +23 -0
  115. package/Source/Scene/Cesium3DTileset.js +197 -2
  116. package/Source/Scene/GaussianSplat3DTileContent.js +504 -0
  117. package/Source/Scene/GaussianSplatPrimitive.js +932 -0
  118. package/Source/Scene/GaussianSplatRenderResources.js +81 -0
  119. package/Source/Scene/GaussianSplatSorter.js +73 -0
  120. package/Source/Scene/GaussianSplatTextureGenerator.js +64 -0
  121. package/Source/Scene/GlobeSurfaceShaderSet.js +4 -5
  122. package/Source/Scene/GltfLoader.js +82 -4
  123. package/Source/Scene/GltfSpzLoader.js +222 -0
  124. package/Source/Scene/GltfVertexBufferLoader.js +98 -3
  125. package/Source/Scene/ImageryLayer.js +19 -4
  126. package/Source/Scene/ImageryLayerCollection.js +3 -2
  127. package/Source/Scene/Model/CartesianRectangle.js +108 -0
  128. package/Source/Scene/Model/ImageryConfiguration.js +25 -0
  129. package/Source/Scene/Model/ImageryCoverage.js +488 -0
  130. package/Source/Scene/Model/ImageryFlags.js +31 -0
  131. package/Source/Scene/Model/ImageryInput.js +60 -0
  132. package/Source/Scene/Model/ImageryPipelineStage.js +1040 -0
  133. package/Source/Scene/Model/MappedPositions.js +84 -0
  134. package/Source/Scene/Model/Model.js +38 -0
  135. package/Source/Scene/Model/ModelImagery.js +403 -0
  136. package/Source/Scene/Model/ModelImageryMapping.js +489 -0
  137. package/Source/Scene/Model/ModelPrimitiveImagery.js +972 -0
  138. package/Source/Scene/Model/ModelReader.js +810 -0
  139. package/Source/Scene/Model/ModelRenderResources.js +13 -0
  140. package/Source/Scene/Model/ModelRuntimePrimitive.js +20 -0
  141. package/Source/Scene/Model/ModelSceneGraph.js +133 -27
  142. package/Source/Scene/Model/ModelUtility.js +2 -0
  143. package/Source/Scene/Model/NodeRenderResources.js +10 -0
  144. package/Source/Scene/ModelComponents.js +10 -0
  145. package/Source/Scene/PrimitiveLoadPlan.js +59 -0
  146. package/Source/Scene/ResourceCache.js +60 -3
  147. package/Source/Scene/ResourceCacheKey.js +39 -1
  148. package/Source/Scene/Scene.js +32 -1
  149. package/Source/Scene/VertexAttributeSemantic.js +30 -0
  150. package/Source/Scene/VoxelPrimitive.js +22 -37
  151. package/Source/Scene/VoxelRenderResources.js +1 -1
  152. package/Source/Scene/processVoxelProperties.js +41 -100
  153. package/Source/Shaders/Builtin/Constants/passGaussianSplats.glsl +9 -0
  154. package/Source/Shaders/Builtin/Constants/passGaussianSplats.js +11 -0
  155. package/Source/Shaders/Builtin/Constants/passOverlay.glsl +1 -1
  156. package/Source/Shaders/Builtin/Constants/passOverlay.js +1 -1
  157. package/Source/Shaders/Builtin/CzmBuiltins.js +2 -0
  158. package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.glsl +0 -1
  159. package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.js +0 -1
  160. package/Source/Shaders/GlobeFS.glsl +22 -0
  161. package/Source/Shaders/GlobeFS.js +22 -0
  162. package/Source/Shaders/Model/MaterialStageFS.glsl +4 -0
  163. package/Source/Shaders/Model/MaterialStageFS.js +4 -0
  164. package/Source/Shaders/Model/ModelFS.glsl +3 -1
  165. package/Source/Shaders/Model/ModelFS.js +3 -1
  166. package/Source/Shaders/Model/ModelVS.glsl +5 -1
  167. package/Source/Shaders/Model/ModelVS.js +5 -1
  168. package/Source/Shaders/Model/PointCloudStylingStageVS.glsl +1 -1
  169. package/Source/Shaders/Model/PointCloudStylingStageVS.js +2 -1
  170. package/Source/Shaders/PrimitiveGaussianSplatFS.glsl +18 -0
  171. package/Source/Shaders/PrimitiveGaussianSplatFS.js +20 -0
  172. package/Source/Shaders/PrimitiveGaussianSplatVS.glsl +108 -0
  173. package/Source/Shaders/PrimitiveGaussianSplatVS.js +109 -0
  174. package/Source/Shaders/Voxels/IntersectDepth.glsl +10 -3
  175. package/Source/Shaders/Voxels/IntersectDepth.js +10 -3
  176. package/Source/Shaders/Voxels/Intersection.glsl +1 -3
  177. package/Source/Shaders/Voxels/Intersection.js +1 -3
  178. package/Source/Shaders/Voxels/IntersectionUtils.glsl +1 -0
  179. package/Source/Shaders/Voxels/IntersectionUtils.js +1 -0
  180. package/Source/Shaders/Voxels/VoxelFS.glsl +37 -24
  181. package/Source/Shaders/Voxels/VoxelFS.js +37 -24
  182. package/Source/ThirdParty/Workers/z-worker-pako.js +1 -1
  183. package/Source/ThirdParty/wasm_splats_bg.wasm +0 -0
  184. package/Source/Workers/gaussianSplatSorter.js +34 -0
  185. package/Source/Workers/gaussianSplatTextureGenerator.js +39 -0
  186. package/index.d.ts +66 -2
  187. package/index.js +101 -80
  188. package/package.json +6 -4
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.129
4
+ * Version 1.130.1-splats
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-J2HTPGC7.js";
28
+ } from "./chunk-DTVWE5YL.js";
29
29
  import {
30
30
  RuntimeError_default
31
- } from "./chunk-IFIS4CVK.js";
31
+ } from "./chunk-RTUZ7MJB.js";
32
32
  import {
33
33
  Check_default
34
- } from "./chunk-NZSBSY5K.js";
34
+ } from "./chunk-HDG3VHYL.js";
35
35
  import {
36
36
  __commonJS,
37
37
  __toESM,
38
38
  defined_default
39
- } from "./chunk-HBNWBMAM.js";
39
+ } from "./chunk-LMTGCD6P.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.129
4
+ * Version 1.130.1-splats
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,32 +25,32 @@
25
25
 
26
26
  import {
27
27
  require_draco_decoder_nodejs
28
- } from "./chunk-LPGOAMYH.js";
28
+ } from "./chunk-F43TQW5B.js";
29
29
  import {
30
30
  Color_default
31
- } from "./chunk-VXAKU6EV.js";
31
+ } from "./chunk-G2Y7EA4W.js";
32
32
  import {
33
33
  createTaskProcessorWorker_default
34
- } from "./chunk-J2HTPGC7.js";
34
+ } from "./chunk-DTVWE5YL.js";
35
35
  import {
36
36
  WebMercatorProjection_default
37
- } from "./chunk-UC7KH56Y.js";
37
+ } from "./chunk-2AXKROJA.js";
38
38
  import {
39
39
  Cartesian3_default,
40
40
  Cartographic_default,
41
41
  Ellipsoid_default,
42
42
  Matrix3_default
43
- } from "./chunk-2BJXFXD7.js";
43
+ } from "./chunk-FOTXJYKS.js";
44
44
  import {
45
45
  Math_default
46
- } from "./chunk-QUFN3GEO.js";
46
+ } from "./chunk-6EP7ED36.js";
47
47
  import {
48
48
  Check_default
49
- } from "./chunk-NZSBSY5K.js";
49
+ } from "./chunk-HDG3VHYL.js";
50
50
  import {
51
51
  __toESM,
52
52
  defined_default
53
- } from "./chunk-HBNWBMAM.js";
53
+ } from "./chunk-LMTGCD6P.js";
54
54
 
55
55
  // packages/engine/Source/Workers/decodeI3S.js
56
56
  var import_draco_decoder_nodejs = __toESM(require_draco_decoder_nodejs(), 1);
@@ -0,0 +1,62 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.130.1-splats
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import {
27
+ initSync,
28
+ radix_sort_gaussians_indexes
29
+ } from "./chunk-EYMZ5FSQ.js";
30
+ import {
31
+ createTaskProcessorWorker_default
32
+ } from "./chunk-DTVWE5YL.js";
33
+ import {
34
+ defined_default
35
+ } from "./chunk-LMTGCD6P.js";
36
+
37
+ // packages/engine/Source/Workers/gaussianSplatSorter.js
38
+ async function initWorker(parameters, transferableObjects) {
39
+ const wasmConfig = parameters.webAssemblyConfig;
40
+ if (defined_default(wasmConfig) && defined_default(wasmConfig.wasmBinary)) {
41
+ initSync({ module: wasmConfig.wasmBinary });
42
+ return true;
43
+ }
44
+ }
45
+ function generateGaussianSortWorker(parameters, transferableObjects) {
46
+ const wasmConfig = parameters.webAssemblyConfig;
47
+ if (defined_default(wasmConfig)) {
48
+ return initWorker(parameters, transferableObjects);
49
+ }
50
+ const { primitive, sortType } = parameters;
51
+ if (sortType === "Index") {
52
+ return radix_sort_gaussians_indexes(
53
+ primitive.positions,
54
+ primitive.modelView,
55
+ primitive.count
56
+ );
57
+ }
58
+ }
59
+ var gaussianSplatSorter_default = createTaskProcessorWorker_default(generateGaussianSortWorker);
60
+ export {
61
+ gaussianSplatSorter_default as default
62
+ };
@@ -0,0 +1,68 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.130.1-splats
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import {
27
+ generate_splat_texture,
28
+ initSync
29
+ } from "./chunk-EYMZ5FSQ.js";
30
+ import {
31
+ createTaskProcessorWorker_default
32
+ } from "./chunk-DTVWE5YL.js";
33
+ import {
34
+ defined_default
35
+ } from "./chunk-LMTGCD6P.js";
36
+
37
+ // packages/engine/Source/Workers/gaussianSplatTextureGenerator.js
38
+ async function initWorker(parameters, transferableObjects) {
39
+ const wasmConfig = parameters.webAssemblyConfig;
40
+ if (defined_default(wasmConfig) && defined_default(wasmConfig.wasmBinary)) {
41
+ initSync({ module: wasmConfig.wasmBinary });
42
+ return true;
43
+ }
44
+ return false;
45
+ }
46
+ async function generateSplatTextureWorker(parameters, transferableObjects) {
47
+ const wasmConfig = parameters.webAssemblyConfig;
48
+ if (defined_default(wasmConfig)) {
49
+ return initWorker(parameters, transferableObjects);
50
+ }
51
+ const { attributes, count } = parameters;
52
+ const result = generate_splat_texture(
53
+ attributes.positions,
54
+ attributes.scales,
55
+ attributes.rotations,
56
+ attributes.colors,
57
+ count
58
+ );
59
+ return {
60
+ data: result.data,
61
+ width: result.width,
62
+ height: result.height
63
+ };
64
+ }
65
+ var gaussianSplatTextureGenerator_default = createTaskProcessorWorker_default(generateSplatTextureWorker);
66
+ export {
67
+ gaussianSplatTextureGenerator_default as default
68
+ };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.129
4
+ * Version 1.130.1-splats
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,22 +25,22 @@
25
25
 
26
26
  import {
27
27
  createTaskProcessorWorker_default
28
- } from "./chunk-J2HTPGC7.js";
28
+ } from "./chunk-DTVWE5YL.js";
29
29
  import {
30
30
  WebGLConstants_default
31
- } from "./chunk-XYGBWBD5.js";
31
+ } from "./chunk-LWZOYSSF.js";
32
32
  import {
33
33
  RuntimeError_default
34
- } from "./chunk-IFIS4CVK.js";
34
+ } from "./chunk-RTUZ7MJB.js";
35
35
  import {
36
36
  Check_default
37
- } from "./chunk-NZSBSY5K.js";
37
+ } from "./chunk-HDG3VHYL.js";
38
38
  import {
39
39
  __commonJS,
40
40
  __require,
41
41
  __toESM,
42
42
  defined_default
43
- } from "./chunk-HBNWBMAM.js";
43
+ } from "./chunk-LMTGCD6P.js";
44
44
 
45
45
  // packages/engine/Source/ThirdParty/Workers/basis_transcoder.js
46
46
  var require_basis_transcoder = __commonJS({
@@ -2366,6 +2366,30 @@ var PixelFormat = {
2366
2366
  * @constant
2367
2367
  */
2368
2368
  RGBA: WebGLConstants_default.RGBA,
2369
+ /**
2370
+ * A pixel format containing a red channel as an integer.
2371
+ * @type {number}
2372
+ * @constant
2373
+ */
2374
+ RED_INTEGER: WebGLConstants_default.RED_INTEGER,
2375
+ /**
2376
+ * A pixel format containing red and green channels as integers.
2377
+ * @type {number}
2378
+ * @constant
2379
+ */
2380
+ RG_INTEGER: WebGLConstants_default.RG_INTEGER,
2381
+ /**
2382
+ * A pixel format containing red, green, and blue channels as integers.
2383
+ * @type {number}
2384
+ * @constant
2385
+ */
2386
+ RGB_INTEGER: WebGLConstants_default.RGB_INTEGER,
2387
+ /**
2388
+ * A pixel format containing red, green, blue, and alpha channels as integers.
2389
+ * @type {number}
2390
+ * @constant
2391
+ */
2392
+ RGBA_INTEGER: WebGLConstants_default.RGBA_INTEGER,
2369
2393
  /**
2370
2394
  * A pixel format containing a luminance (intensity) channel.
2371
2395
  *
@@ -2475,14 +2499,18 @@ var PixelFormat = {
2475
2499
  PixelFormat.componentsLength = function(pixelFormat) {
2476
2500
  switch (pixelFormat) {
2477
2501
  case PixelFormat.RGB:
2502
+ case PixelFormat.RGB_INTEGER:
2478
2503
  return 3;
2479
2504
  case PixelFormat.RGBA:
2505
+ case PixelFormat.RGBA_INTEGER:
2480
2506
  return 4;
2481
2507
  case PixelFormat.LUMINANCE_ALPHA:
2482
2508
  case PixelFormat.RG:
2509
+ case PixelFormat.RG_INTEGER:
2483
2510
  return 2;
2484
2511
  case PixelFormat.ALPHA:
2485
2512
  case PixelFormat.RED:
2513
+ case PixelFormat.RED_INTEGER:
2486
2514
  case PixelFormat.LUMINANCE:
2487
2515
  return 1;
2488
2516
  default:
@@ -2490,7 +2518,7 @@ PixelFormat.componentsLength = function(pixelFormat) {
2490
2518
  }
2491
2519
  };
2492
2520
  PixelFormat.validate = function(pixelFormat) {
2493
- return pixelFormat === PixelFormat.DEPTH_COMPONENT || pixelFormat === PixelFormat.DEPTH_STENCIL || pixelFormat === PixelFormat.ALPHA || pixelFormat === PixelFormat.RED || pixelFormat === PixelFormat.RG || pixelFormat === PixelFormat.RGB || pixelFormat === PixelFormat.RGBA || pixelFormat === PixelFormat.LUMINANCE || pixelFormat === PixelFormat.LUMINANCE_ALPHA || pixelFormat === PixelFormat.RGB_DXT1 || pixelFormat === PixelFormat.RGBA_DXT1 || pixelFormat === PixelFormat.RGBA_DXT3 || pixelFormat === PixelFormat.RGBA_DXT5 || pixelFormat === PixelFormat.RGB_PVRTC_4BPPV1 || pixelFormat === PixelFormat.RGB_PVRTC_2BPPV1 || pixelFormat === PixelFormat.RGBA_PVRTC_4BPPV1 || pixelFormat === PixelFormat.RGBA_PVRTC_2BPPV1 || pixelFormat === PixelFormat.RGBA_ASTC || pixelFormat === PixelFormat.RGB_ETC1 || pixelFormat === PixelFormat.RGB8_ETC2 || pixelFormat === PixelFormat.RGBA8_ETC2_EAC || pixelFormat === PixelFormat.RGBA_BC7;
2521
+ return pixelFormat === PixelFormat.DEPTH_COMPONENT || pixelFormat === PixelFormat.DEPTH_STENCIL || pixelFormat === PixelFormat.ALPHA || pixelFormat === PixelFormat.RED || pixelFormat === PixelFormat.RG || pixelFormat === PixelFormat.RGB || pixelFormat === PixelFormat.RGBA || pixelFormat === PixelFormat.RED_INTEGER || pixelFormat === PixelFormat.RG_INTEGER || pixelFormat === PixelFormat.RGB_INTEGER || pixelFormat === PixelFormat.RGBA_INTEGER || pixelFormat === PixelFormat.LUMINANCE || pixelFormat === PixelFormat.LUMINANCE_ALPHA || pixelFormat === PixelFormat.RGB_DXT1 || pixelFormat === PixelFormat.RGBA_DXT1 || pixelFormat === PixelFormat.RGBA_DXT3 || pixelFormat === PixelFormat.RGBA_DXT5 || pixelFormat === PixelFormat.RGB_PVRTC_4BPPV1 || pixelFormat === PixelFormat.RGB_PVRTC_2BPPV1 || pixelFormat === PixelFormat.RGBA_PVRTC_4BPPV1 || pixelFormat === PixelFormat.RGBA_PVRTC_2BPPV1 || pixelFormat === PixelFormat.RGBA_ASTC || pixelFormat === PixelFormat.RGB_ETC1 || pixelFormat === PixelFormat.RGB8_ETC2 || pixelFormat === PixelFormat.RGBA8_ETC2_EAC || pixelFormat === PixelFormat.RGBA_BC7;
2494
2522
  };
2495
2523
  PixelFormat.isColorFormat = function(pixelFormat) {
2496
2524
  return pixelFormat === PixelFormat.RED || pixelFormat === PixelFormat.ALPHA || pixelFormat === PixelFormat.RGB || pixelFormat === PixelFormat.RGBA || pixelFormat === PixelFormat.LUMINANCE || pixelFormat === PixelFormat.LUMINANCE_ALPHA;
@@ -2552,6 +2580,13 @@ PixelFormat.textureSizeInBytes = function(pixelFormat, pixelDatatype, width, hei
2552
2580
  }
2553
2581
  return componentsLength * PixelDatatype_default.sizeInBytes(pixelDatatype) * width * height;
2554
2582
  };
2583
+ PixelFormat.texture3DSizeInBytes = function(pixelFormat, pixelDatatype, width, height, depth) {
2584
+ let componentsLength = PixelFormat.componentsLength(pixelFormat);
2585
+ if (PixelDatatype_default.isPacked(pixelDatatype)) {
2586
+ componentsLength = 1;
2587
+ }
2588
+ return componentsLength * PixelDatatype_default.sizeInBytes(pixelDatatype) * width * height * depth;
2589
+ };
2555
2590
  PixelFormat.alignmentInBytes = function(pixelFormat, pixelDatatype, width) {
2556
2591
  const mod = PixelFormat.textureSizeInBytes(pixelFormat, pixelDatatype, width, 1) % 4;
2557
2592
  return mod === 0 ? 4 : mod === 2 ? 2 : 1;
@@ -2620,6 +2655,42 @@ PixelFormat.toInternalFormat = function(pixelFormat, pixelDatatype, context) {
2620
2655
  return WebGLConstants_default.R16F;
2621
2656
  }
2622
2657
  }
2658
+ if (pixelDatatype === PixelDatatype_default.UNSIGNED_BYTE) {
2659
+ switch (pixelFormat) {
2660
+ case PixelFormat.RGBA:
2661
+ return WebGLConstants_default.RGBA8;
2662
+ case PixelFormat.RGB:
2663
+ return WebGLConstants_default.RGB8;
2664
+ case PixelFormat.RG:
2665
+ return WebGLConstants_default.RG8;
2666
+ case PixelFormat.RED:
2667
+ return WebGLConstants_default.R8;
2668
+ }
2669
+ }
2670
+ if (pixelDatatype === PixelDatatype_default.INT) {
2671
+ switch (pixelFormat) {
2672
+ case PixelFormat.RGBA_INTEGER:
2673
+ return WebGLConstants_default.RGBA32I;
2674
+ case PixelFormat.RGB_INTEGER:
2675
+ return WebGLConstants_default.RGB32I;
2676
+ case PixelFormat.RG_INTEGER:
2677
+ return WebGLConstants_default.RG32I;
2678
+ case PixelFormat.RED_INTEGER:
2679
+ return WebGLConstants_default.R32I;
2680
+ }
2681
+ }
2682
+ if (pixelDatatype === PixelDatatype_default.UNSIGNED_INT) {
2683
+ switch (pixelFormat) {
2684
+ case PixelFormat.RGBA_INTEGER:
2685
+ return WebGLConstants_default.RGBA32UI;
2686
+ case PixelFormat.RGB_INTEGER:
2687
+ return WebGLConstants_default.RGB32UI;
2688
+ case PixelFormat.RG_INTEGER:
2689
+ return WebGLConstants_default.RG32UI;
2690
+ case PixelFormat.RED_INTEGER:
2691
+ return WebGLConstants_default.R32UI;
2692
+ }
2693
+ }
2623
2694
  return pixelFormat;
2624
2695
  };
2625
2696
  var PixelFormat_default = Object.freeze(PixelFormat);
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.129
4
+ * Version 1.130.1-splats
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.129
4
+ * Version 1.130.1-splats
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -26,48 +26,48 @@
26
26
  import {
27
27
  EllipsoidalOccluder_default,
28
28
  TerrainEncoding_default
29
- } from "./chunk-PM4Q36WX.js";
29
+ } from "./chunk-4GYIDPXP.js";
30
30
  import {
31
31
  createTaskProcessorWorker_default
32
- } from "./chunk-J2HTPGC7.js";
32
+ } from "./chunk-DTVWE5YL.js";
33
33
  import {
34
34
  OrientedBoundingBox_default
35
- } from "./chunk-WP3IJYLC.js";
35
+ } from "./chunk-HOEUXPBL.js";
36
36
  import {
37
37
  AttributeCompression_default
38
- } from "./chunk-RX65FA7X.js";
39
- import "./chunk-CAKU6ZPR.js";
40
- import "./chunk-DRMXU674.js";
41
- import "./chunk-C5DCX2YQ.js";
42
- import "./chunk-HGEGZ67N.js";
38
+ } from "./chunk-6Y6TVYHS.js";
39
+ import "./chunk-AQKVFTWV.js";
40
+ import "./chunk-DI7PHKC6.js";
41
+ import "./chunk-PFD462OE.js";
42
+ import "./chunk-V7LEBY53.js";
43
43
  import {
44
44
  IndexDatatype_default
45
- } from "./chunk-77MDEA47.js";
45
+ } from "./chunk-KPLU3WDY.js";
46
46
  import {
47
47
  BoundingSphere_default
48
- } from "./chunk-QJTIOB2Z.js";
48
+ } from "./chunk-6QOBORNG.js";
49
49
  import {
50
50
  Rectangle_default
51
- } from "./chunk-5RPUEFSA.js";
52
- import "./chunk-IKDQX7DY.js";
51
+ } from "./chunk-FOMRN6II.js";
52
+ import "./chunk-2J5ZZ7CY.js";
53
53
  import {
54
54
  Cartesian2_default,
55
55
  Cartesian3_default,
56
56
  Cartographic_default,
57
57
  Ellipsoid_default
58
- } from "./chunk-2BJXFXD7.js";
58
+ } from "./chunk-FOTXJYKS.js";
59
59
  import {
60
60
  Math_default
61
- } from "./chunk-QUFN3GEO.js";
62
- import "./chunk-XYGBWBD5.js";
63
- import "./chunk-IFIS4CVK.js";
61
+ } from "./chunk-6EP7ED36.js";
62
+ import "./chunk-LWZOYSSF.js";
63
+ import "./chunk-RTUZ7MJB.js";
64
64
  import {
65
65
  Check_default,
66
66
  DeveloperError_default
67
- } from "./chunk-NZSBSY5K.js";
67
+ } from "./chunk-HDG3VHYL.js";
68
68
  import {
69
69
  defined_default
70
- } from "./chunk-HBNWBMAM.js";
70
+ } from "./chunk-LMTGCD6P.js";
71
71
 
72
72
  // packages/engine/Source/Core/Intersections2D.js
73
73
  var Intersections2D = {};
@@ -4,7 +4,7 @@ import Resource from "./Resource.js";
4
4
 
5
5
  let defaultTokenCredit;
6
6
  const defaultAccessToken =
7
- "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJjNjVkZDYxOC01NmEwLTQ1ZmEtOGE2ZS1lYWUyODM4ZWQxYzQiLCJpZCI6MjU5LCJpYXQiOjE3NDYxMTA0Njl9.uyhPpCQKB1dodfbqTx0ZUPOLhnrSXd-qWixDxc4GYXk";
7
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI4ZTlhZTM1MC1lNjM0LTRkNTQtYTE3OC02NWI0YjQ3NTAxNzgiLCJpZCI6MjU5LCJpYXQiOjE3NDg4ODUxMzV9.8mGFxgmp1QW0MIdArET4EVn5c7DKlt_HHA_Gnnu7eF4";
8
8
  /**
9
9
  * Default settings for accessing the Cesium ion API.
10
10
  *
@@ -63,6 +63,34 @@ const PixelFormat = {
63
63
  */
64
64
  RGBA: WebGLConstants.RGBA,
65
65
 
66
+ /**
67
+ * A pixel format containing a red channel as an integer.
68
+ * @type {number}
69
+ * @constant
70
+ */
71
+ RED_INTEGER: WebGLConstants.RED_INTEGER,
72
+
73
+ /**
74
+ * A pixel format containing red and green channels as integers.
75
+ * @type {number}
76
+ * @constant
77
+ */
78
+ RG_INTEGER: WebGLConstants.RG_INTEGER,
79
+
80
+ /**
81
+ * A pixel format containing red, green, and blue channels as integers.
82
+ * @type {number}
83
+ * @constant
84
+ */
85
+ RGB_INTEGER: WebGLConstants.RGB_INTEGER,
86
+
87
+ /**
88
+ * A pixel format containing red, green, blue, and alpha channels as integers.
89
+ * @type {number}
90
+ * @constant
91
+ */
92
+ RGBA_INTEGER: WebGLConstants.RGBA_INTEGER,
93
+
66
94
  /**
67
95
  * A pixel format containing a luminance (intensity) channel.
68
96
  *
@@ -190,14 +218,18 @@ const PixelFormat = {
190
218
  PixelFormat.componentsLength = function (pixelFormat) {
191
219
  switch (pixelFormat) {
192
220
  case PixelFormat.RGB:
221
+ case PixelFormat.RGB_INTEGER:
193
222
  return 3;
194
223
  case PixelFormat.RGBA:
224
+ case PixelFormat.RGBA_INTEGER:
195
225
  return 4;
196
226
  case PixelFormat.LUMINANCE_ALPHA:
197
227
  case PixelFormat.RG:
228
+ case PixelFormat.RG_INTEGER:
198
229
  return 2;
199
230
  case PixelFormat.ALPHA:
200
231
  case PixelFormat.RED:
232
+ case PixelFormat.RED_INTEGER:
201
233
  case PixelFormat.LUMINANCE:
202
234
  return 1;
203
235
  default:
@@ -217,6 +249,10 @@ PixelFormat.validate = function (pixelFormat) {
217
249
  pixelFormat === PixelFormat.RG ||
218
250
  pixelFormat === PixelFormat.RGB ||
219
251
  pixelFormat === PixelFormat.RGBA ||
252
+ pixelFormat === PixelFormat.RED_INTEGER ||
253
+ pixelFormat === PixelFormat.RG_INTEGER ||
254
+ pixelFormat === PixelFormat.RGB_INTEGER ||
255
+ pixelFormat === PixelFormat.RGBA_INTEGER ||
220
256
  pixelFormat === PixelFormat.LUMINANCE ||
221
257
  pixelFormat === PixelFormat.LUMINANCE_ALPHA ||
222
258
  pixelFormat === PixelFormat.RGB_DXT1 ||
@@ -392,6 +428,29 @@ PixelFormat.textureSizeInBytes = function (
392
428
  );
393
429
  };
394
430
 
431
+ /**
432
+ * @private
433
+ */
434
+ PixelFormat.texture3DSizeInBytes = function (
435
+ pixelFormat,
436
+ pixelDatatype,
437
+ width,
438
+ height,
439
+ depth,
440
+ ) {
441
+ let componentsLength = PixelFormat.componentsLength(pixelFormat);
442
+ if (PixelDatatype.isPacked(pixelDatatype)) {
443
+ componentsLength = 1;
444
+ }
445
+ return (
446
+ componentsLength *
447
+ PixelDatatype.sizeInBytes(pixelDatatype) *
448
+ width *
449
+ height *
450
+ depth
451
+ );
452
+ };
453
+
395
454
  /**
396
455
  * @private
397
456
  */
@@ -499,6 +558,45 @@ PixelFormat.toInternalFormat = function (pixelFormat, pixelDatatype, context) {
499
558
  }
500
559
  }
501
560
 
561
+ if (pixelDatatype === PixelDatatype.UNSIGNED_BYTE) {
562
+ switch (pixelFormat) {
563
+ case PixelFormat.RGBA:
564
+ return WebGLConstants.RGBA8;
565
+ case PixelFormat.RGB:
566
+ return WebGLConstants.RGB8;
567
+ case PixelFormat.RG:
568
+ return WebGLConstants.RG8;
569
+ case PixelFormat.RED:
570
+ return WebGLConstants.R8;
571
+ }
572
+ }
573
+
574
+ if (pixelDatatype === PixelDatatype.INT) {
575
+ switch (pixelFormat) {
576
+ case PixelFormat.RGBA_INTEGER:
577
+ return WebGLConstants.RGBA32I;
578
+ case PixelFormat.RGB_INTEGER:
579
+ return WebGLConstants.RGB32I;
580
+ case PixelFormat.RG_INTEGER:
581
+ return WebGLConstants.RG32I;
582
+ case PixelFormat.RED_INTEGER:
583
+ return WebGLConstants.R32I;
584
+ }
585
+ }
586
+
587
+ if (pixelDatatype === PixelDatatype.UNSIGNED_INT) {
588
+ switch (pixelFormat) {
589
+ case PixelFormat.RGBA_INTEGER:
590
+ return WebGLConstants.RGBA32UI;
591
+ case PixelFormat.RGB_INTEGER:
592
+ return WebGLConstants.RGB32UI;
593
+ case PixelFormat.RG_INTEGER:
594
+ return WebGLConstants.RG32UI;
595
+ case PixelFormat.RED_INTEGER:
596
+ return WebGLConstants.R32UI;
597
+ }
598
+ }
599
+
502
600
  return pixelFormat;
503
601
  };
504
602
 
@@ -1302,6 +1302,7 @@ function beginDraw(
1302
1302
  bindFramebuffer(context, framebuffer);
1303
1303
  applyRenderState(context, renderState, passState, false);
1304
1304
  shaderProgram._bind();
1305
+
1305
1306
  context._maxFrameTextureUnitIndex = Math.max(
1306
1307
  context._maxFrameTextureUnitIndex,
1307
1308
  shaderProgram.maximumTextureUnitIndex,
@@ -1376,6 +1377,7 @@ function continueDraw(context, drawCommand, shaderProgram, uniformMap) {
1376
1377
  } else {
1377
1378
  count = va.numberOfVertices;
1378
1379
  }
1380
+
1379
1381
  if (instanceCount === 0) {
1380
1382
  context._gl.drawArrays(primitiveType, offset, count);
1381
1383
  } else {
@@ -21,7 +21,8 @@ const Pass = {
21
21
  OPAQUE: 7,
22
22
  TRANSLUCENT: 8,
23
23
  VOXELS: 9,
24
- OVERLAY: 10,
25
- NUMBER_OF_PASSES: 11,
24
+ GAUSSIAN_SPLATS: 10,
25
+ OVERLAY: 11,
26
+ NUMBER_OF_PASSES: 12,
26
27
  };
27
28
  export default Object.freeze(Pass);
@@ -340,6 +340,7 @@ function loadBufferSource(texture, source) {
340
340
  pixelDatatype,
341
341
  width,
342
342
  );
343
+
343
344
  gl.pixelStorei(gl.UNPACK_ALIGNMENT, unpackAlignment);
344
345
  gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false);
345
346
  gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, false);