@cesium/engine 18.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 (146) hide show
  1. package/Build/Workers/{chunk-WTFZHPUW.js → chunk-2AXKROJA.js} +5 -5
  2. package/Build/Workers/{chunk-UK33ZN4K.js → chunk-2J5ZZ7CY.js} +4 -4
  3. package/Build/Workers/{chunk-2AXPWBJG.js → chunk-2SYY3UBI.js} +1 -1
  4. package/Build/Workers/{chunk-ZIP27IX6.js → chunk-2WKW3BEB.js} +6 -6
  5. package/Build/Workers/{chunk-LIPZUYNR.js → chunk-2ZO6BCHN.js} +11 -11
  6. package/Build/Workers/{chunk-KGXTCGX3.js → chunk-3UKG5X7F.js} +12 -12
  7. package/Build/Workers/{chunk-IWGMVQGG.js → chunk-4GYIDPXP.js} +9 -9
  8. package/Build/Workers/{chunk-NR7KSD56.js → chunk-6EP7ED36.js} +3 -3
  9. package/Build/Workers/{chunk-J4MAVE6J.js → chunk-6QOBORNG.js} +6 -6
  10. package/Build/Workers/{chunk-GM55YFOB.js → chunk-6WWHK2ER.js} +14 -14
  11. package/Build/Workers/{chunk-JF4IYQYC.js → chunk-6Y6TVYHS.js} +7 -7
  12. package/Build/Workers/{chunk-4MIY63FM.js → chunk-744VWE2U.js} +13 -13
  13. package/Build/Workers/{chunk-ZADJ6FRX.js → chunk-7PQ52XCW.js} +4 -4
  14. package/Build/Workers/{chunk-2NKHPWDY.js → chunk-A5UFJW2M.js} +12 -12
  15. package/Build/Workers/{chunk-2CAYUY2B.js → chunk-AQKVFTWV.js} +8 -8
  16. package/Build/Workers/{chunk-F4ZAKN4V.js → chunk-BKTEHJFD.js} +2 -2
  17. package/Build/Workers/{chunk-GAUF4F5A.js → chunk-CQXYKPAW.js} +16 -16
  18. package/Build/Workers/{chunk-QN7JEOQV.js → chunk-DI7PHKC6.js} +5 -5
  19. package/Build/Workers/{chunk-NWSAYFZG.js → chunk-DKKIQS6F.js} +6 -6
  20. package/Build/Workers/{chunk-4DSTDGY3.js → chunk-DTVWE5YL.js} +2 -2
  21. package/Build/Workers/{chunk-EXEZHW3P.js → chunk-ERPS2WZC.js} +4 -4
  22. package/Build/Workers/chunk-EYMZ5FSQ.js +280 -0
  23. package/Build/Workers/{chunk-HQE7KSR4.js → chunk-F43TQW5B.js} +2 -2
  24. package/Build/Workers/{chunk-W6CPO62M.js → chunk-FOMRN6II.js} +6 -6
  25. package/Build/Workers/{chunk-VGJSKEIB.js → chunk-FOTXJYKS.js} +4 -4
  26. package/Build/Workers/{chunk-2QNKQVUT.js → chunk-G2Y7EA4W.js} +5 -5
  27. package/Build/Workers/{chunk-LZFUG3GO.js → chunk-GY4E4ZP6.js} +10 -10
  28. package/Build/Workers/{chunk-WYCR5DWQ.js → chunk-HDG3VHYL.js} +2 -2
  29. package/Build/Workers/{chunk-YV37YFUM.js → chunk-HOEUXPBL.js} +9 -9
  30. package/Build/Workers/{chunk-OATG6PKE.js → chunk-IWDYVJ56.js} +12 -12
  31. package/Build/Workers/{chunk-AEGAQ6FD.js → chunk-JA4KPQJL.js} +12 -12
  32. package/Build/Workers/{chunk-DINSLSJD.js → chunk-JZZQEZMA.js} +6 -6
  33. package/Build/Workers/{chunk-QUSP3NWA.js → chunk-KPLU3WDY.js} +5 -5
  34. package/Build/Workers/{chunk-5WVF4BK7.js → chunk-LHM6V4D6.js} +5 -5
  35. package/Build/Workers/{chunk-FPYBD2P5.js → chunk-LMTGCD6P.js} +1 -1
  36. package/Build/Workers/{chunk-5OL6XFNS.js → chunk-LWZOYSSF.js} +1 -1
  37. package/Build/Workers/{chunk-T6B6H3GR.js → chunk-M6U7SV4T.js} +7 -7
  38. package/Build/Workers/{chunk-NVJ5JRIM.js → chunk-O25M56DO.js} +2 -2
  39. package/Build/Workers/{chunk-OIHAAHBK.js → chunk-OE2WXO2Z.js} +10 -10
  40. package/Build/Workers/{chunk-LWJWWCZ4.js → chunk-PFD462OE.js} +6 -6
  41. package/Build/Workers/{chunk-WGHUCZMX.js → chunk-PPI33PXH.js} +7 -7
  42. package/Build/Workers/{chunk-CES6DHHV.js → chunk-PRQQHLUB.js} +1 -1
  43. package/Build/Workers/{chunk-HS76VTVY.js → chunk-RTUZ7MJB.js} +2 -2
  44. package/Build/Workers/{chunk-EHB2OCQX.js → chunk-S6QBTP5U.js} +4 -4
  45. package/Build/Workers/{chunk-IWZK2AIH.js → chunk-SMFCIGM3.js} +5 -5
  46. package/Build/Workers/{chunk-MFGVMUN3.js → chunk-TC3LEKFJ.js} +5 -5
  47. package/Build/Workers/{chunk-I3BAKR4S.js → chunk-UTLYCPFY.js} +16 -16
  48. package/Build/Workers/{chunk-GS55WTRX.js → chunk-V7LEBY53.js} +6 -6
  49. package/Build/Workers/{chunk-RWFYLWSF.js → chunk-VE3UKRDB.js} +9 -9
  50. package/Build/Workers/{chunk-3RKVDGRF.js → chunk-W3FBD4FE.js} +8 -8
  51. package/Build/Workers/{chunk-KNA65INJ.js → chunk-YRR6CJGG.js} +4 -4
  52. package/Build/Workers/{chunk-SIOVJ4L5.js → chunk-ZVTKMLU6.js} +4 -4
  53. package/Build/Workers/combineGeometry.js +21 -21
  54. package/Build/Workers/createBoxGeometry.js +15 -15
  55. package/Build/Workers/createBoxOutlineGeometry.js +13 -13
  56. package/Build/Workers/createCircleGeometry.js +23 -23
  57. package/Build/Workers/createCircleOutlineGeometry.js +16 -16
  58. package/Build/Workers/createCoplanarPolygonGeometry.js +30 -30
  59. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +28 -28
  60. package/Build/Workers/createCorridorGeometry.js +26 -26
  61. package/Build/Workers/createCorridorOutlineGeometry.js +25 -25
  62. package/Build/Workers/createCylinderGeometry.js +17 -17
  63. package/Build/Workers/createCylinderOutlineGeometry.js +15 -15
  64. package/Build/Workers/createEllipseGeometry.js +23 -23
  65. package/Build/Workers/createEllipseOutlineGeometry.js +16 -16
  66. package/Build/Workers/createEllipsoidGeometry.js +16 -16
  67. package/Build/Workers/createEllipsoidOutlineGeometry.js +15 -15
  68. package/Build/Workers/createFrustumGeometry.js +15 -15
  69. package/Build/Workers/createFrustumOutlineGeometry.js +15 -15
  70. package/Build/Workers/createGeometry.js +23 -21
  71. package/Build/Workers/createGroundPolylineGeometry.js +19 -19
  72. package/Build/Workers/createPlaneGeometry.js +13 -13
  73. package/Build/Workers/createPlaneOutlineGeometry.js +12 -12
  74. package/Build/Workers/createPolygonGeometry.js +29 -29
  75. package/Build/Workers/createPolygonOutlineGeometry.js +27 -27
  76. package/Build/Workers/createPolylineGeometry.js +22 -22
  77. package/Build/Workers/createPolylineVolumeGeometry.js +28 -28
  78. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +24 -24
  79. package/Build/Workers/createRectangleGeometry.js +24 -24
  80. package/Build/Workers/createRectangleOutlineGeometry.js +17 -17
  81. package/Build/Workers/createSimplePolylineGeometry.js +20 -20
  82. package/Build/Workers/createSphereGeometry.js +16 -16
  83. package/Build/Workers/createSphereOutlineGeometry.js +15 -15
  84. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  85. package/Build/Workers/createVectorTileClampedPolylines.js +12 -12
  86. package/Build/Workers/createVectorTileGeometries.js +21 -21
  87. package/Build/Workers/createVectorTilePoints.js +11 -11
  88. package/Build/Workers/createVectorTilePolygons.js +19 -19
  89. package/Build/Workers/createVectorTilePolylines.js +12 -12
  90. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +19 -19
  91. package/Build/Workers/createVerticesFromHeightmap.js +19 -19
  92. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +16 -16
  93. package/Build/Workers/createWallGeometry.js +21 -21
  94. package/Build/Workers/createWallOutlineGeometry.js +20 -20
  95. package/Build/Workers/decodeDraco.js +10 -10
  96. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
  97. package/Build/Workers/decodeI3S.js +9 -9
  98. package/Build/Workers/gaussianSplatSorter.js +62 -0
  99. package/Build/Workers/gaussianSplatTextureGenerator.js +68 -0
  100. package/Build/Workers/transcodeKTX2.js +59 -7
  101. package/Build/Workers/transferTypedArrayTest.js +1 -1
  102. package/Build/Workers/upsampleQuantizedTerrainMesh.js +19 -19
  103. package/Source/Core/PixelFormat.js +62 -0
  104. package/Source/Renderer/Context.js +2 -0
  105. package/Source/Renderer/Pass.js +3 -2
  106. package/Source/Renderer/Texture.js +1 -0
  107. package/Source/Renderer/VertexArray.js +33 -8
  108. package/Source/Renderer/createUniform.js +2 -0
  109. package/Source/Scene/Cesium3DTileContentFactory.js +23 -0
  110. package/Source/Scene/Cesium3DTileset.js +59 -2
  111. package/Source/Scene/GaussianSplat3DTileContent.js +504 -0
  112. package/Source/Scene/GaussianSplatPrimitive.js +932 -0
  113. package/Source/Scene/GaussianSplatRenderResources.js +81 -0
  114. package/Source/Scene/GaussianSplatSorter.js +73 -0
  115. package/Source/Scene/GaussianSplatTextureGenerator.js +64 -0
  116. package/Source/Scene/GltfLoader.js +82 -4
  117. package/Source/Scene/GltfSpzLoader.js +222 -0
  118. package/Source/Scene/GltfVertexBufferLoader.js +98 -3
  119. package/Source/Scene/Model/ModelRuntimePrimitive.js +1 -0
  120. package/Source/Scene/Model/ModelUtility.js +2 -0
  121. package/Source/Scene/PrimitiveLoadPlan.js +59 -0
  122. package/Source/Scene/ResourceCache.js +60 -3
  123. package/Source/Scene/ResourceCacheKey.js +39 -1
  124. package/Source/Scene/Scene.js +32 -1
  125. package/Source/Scene/VertexAttributeSemantic.js +30 -0
  126. package/Source/Shaders/Builtin/Constants/passGaussianSplats.glsl +9 -0
  127. package/Source/Shaders/Builtin/Constants/passGaussianSplats.js +11 -0
  128. package/Source/Shaders/Builtin/Constants/passOverlay.glsl +1 -1
  129. package/Source/Shaders/Builtin/Constants/passOverlay.js +1 -1
  130. package/Source/Shaders/Builtin/CzmBuiltins.js +2 -0
  131. package/Source/Shaders/Model/ModelFS.glsl +3 -1
  132. package/Source/Shaders/Model/ModelFS.js +3 -1
  133. package/Source/Shaders/Model/ModelVS.glsl +1 -1
  134. package/Source/Shaders/Model/ModelVS.js +1 -1
  135. package/Source/Shaders/Model/PointCloudStylingStageVS.glsl +1 -1
  136. package/Source/Shaders/Model/PointCloudStylingStageVS.js +2 -1
  137. package/Source/Shaders/PrimitiveGaussianSplatFS.glsl +18 -0
  138. package/Source/Shaders/PrimitiveGaussianSplatFS.js +20 -0
  139. package/Source/Shaders/PrimitiveGaussianSplatVS.glsl +108 -0
  140. package/Source/Shaders/PrimitiveGaussianSplatVS.js +109 -0
  141. package/Source/ThirdParty/wasm_splats_bg.wasm +0 -0
  142. package/Source/Workers/gaussianSplatSorter.js +34 -0
  143. package/Source/Workers/gaussianSplatTextureGenerator.js +39 -0
  144. package/index.d.ts +16 -0
  145. package/index.js +70 -61
  146. package/package.json +4 -2
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.130
4
+ * Version 1.130.1-splats
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,56 +25,56 @@
25
25
 
26
26
  import {
27
27
  ArcType_default
28
- } from "./chunk-CES6DHHV.js";
28
+ } from "./chunk-PRQQHLUB.js";
29
29
  import {
30
30
  GeometryPipeline_default
31
- } from "./chunk-GM55YFOB.js";
31
+ } from "./chunk-6WWHK2ER.js";
32
32
  import {
33
33
  PolygonPipeline_default,
34
34
  WindingOrder_default
35
- } from "./chunk-RWFYLWSF.js";
35
+ } from "./chunk-VE3UKRDB.js";
36
36
  import {
37
37
  arrayRemoveDuplicates_default
38
- } from "./chunk-KNA65INJ.js";
38
+ } from "./chunk-YRR6CJGG.js";
39
39
  import {
40
40
  EllipsoidRhumbLine_default
41
- } from "./chunk-5WVF4BK7.js";
41
+ } from "./chunk-LHM6V4D6.js";
42
42
  import {
43
43
  IntersectionTests_default
44
- } from "./chunk-LWJWWCZ4.js";
44
+ } from "./chunk-PFD462OE.js";
45
45
  import {
46
46
  Plane_default
47
- } from "./chunk-GS55WTRX.js";
47
+ } from "./chunk-V7LEBY53.js";
48
48
  import {
49
49
  IndexDatatype_default
50
- } from "./chunk-QUSP3NWA.js";
50
+ } from "./chunk-KPLU3WDY.js";
51
51
  import {
52
52
  GeometryAttributes_default
53
- } from "./chunk-F4ZAKN4V.js";
53
+ } from "./chunk-BKTEHJFD.js";
54
54
  import {
55
55
  GeometryAttribute_default,
56
56
  Geometry_default,
57
57
  PrimitiveType_default
58
- } from "./chunk-NWSAYFZG.js";
58
+ } from "./chunk-DKKIQS6F.js";
59
59
  import {
60
60
  Quaternion_default
61
- } from "./chunk-W6CPO62M.js";
61
+ } from "./chunk-FOMRN6II.js";
62
62
  import {
63
63
  ComponentDatatype_default
64
- } from "./chunk-UK33ZN4K.js";
64
+ } from "./chunk-2J5ZZ7CY.js";
65
65
  import {
66
66
  Cartesian2_default,
67
67
  Cartesian3_default,
68
68
  Cartographic_default,
69
69
  Ellipsoid_default,
70
70
  Matrix3_default
71
- } from "./chunk-VGJSKEIB.js";
71
+ } from "./chunk-FOTXJYKS.js";
72
72
  import {
73
73
  Math_default
74
- } from "./chunk-NR7KSD56.js";
74
+ } from "./chunk-6EP7ED36.js";
75
75
  import {
76
76
  defined_default
77
- } from "./chunk-FPYBD2P5.js";
77
+ } from "./chunk-LMTGCD6P.js";
78
78
 
79
79
  // packages/engine/Source/Core/PolygonHierarchy.js
80
80
  function PolygonHierarchy(positions, holes) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.130
4
+ * Version 1.130.1-splats
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,16 +25,16 @@
25
25
 
26
26
  import {
27
27
  Intersect_default
28
- } from "./chunk-J4MAVE6J.js";
28
+ } from "./chunk-6QOBORNG.js";
29
29
  import {
30
30
  Cartesian3_default
31
- } from "./chunk-VGJSKEIB.js";
31
+ } from "./chunk-FOTXJYKS.js";
32
32
  import {
33
33
  Check_default
34
- } from "./chunk-WYCR5DWQ.js";
34
+ } from "./chunk-HDG3VHYL.js";
35
35
  import {
36
36
  defined_default
37
- } from "./chunk-FPYBD2P5.js";
37
+ } from "./chunk-LMTGCD6P.js";
38
38
 
39
39
  // packages/engine/Source/Core/AxisAlignedBoundingBox.js
40
40
  function AxisAlignedBoundingBox(minimum, maximum, center) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.130
4
+ * Version 1.130.1-splats
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -29,24 +29,24 @@ import {
29
29
  Quaternion_default,
30
30
  Rectangle_default,
31
31
  Transforms_default
32
- } from "./chunk-W6CPO62M.js";
32
+ } from "./chunk-FOMRN6II.js";
33
33
  import {
34
34
  Cartesian2_default,
35
35
  Cartesian3_default,
36
36
  Cartographic_default,
37
37
  Frozen_default,
38
38
  Matrix3_default
39
- } from "./chunk-VGJSKEIB.js";
39
+ } from "./chunk-FOTXJYKS.js";
40
40
  import {
41
41
  WebGLConstants_default
42
- } from "./chunk-5OL6XFNS.js";
42
+ } from "./chunk-LWZOYSSF.js";
43
43
  import {
44
44
  Check_default,
45
45
  DeveloperError_default
46
- } from "./chunk-WYCR5DWQ.js";
46
+ } from "./chunk-HDG3VHYL.js";
47
47
  import {
48
48
  defined_default
49
- } from "./chunk-FPYBD2P5.js";
49
+ } from "./chunk-LMTGCD6P.js";
50
50
 
51
51
  // packages/engine/Source/Core/GeometryType.js
52
52
  var GeometryType = {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.130
4
+ * Version 1.130.1-splats
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,7 +25,7 @@
25
25
 
26
26
  import {
27
27
  defined_default
28
- } from "./chunk-FPYBD2P5.js";
28
+ } from "./chunk-LMTGCD6P.js";
29
29
 
30
30
  // packages/engine/Source/Core/formatError.js
31
31
  function formatError(object) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.130
4
+ * Version 1.130.1-splats
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,13 +25,13 @@
25
25
 
26
26
  import {
27
27
  Frozen_default
28
- } from "./chunk-VGJSKEIB.js";
28
+ } from "./chunk-FOTXJYKS.js";
29
29
  import {
30
30
  DeveloperError_default
31
- } from "./chunk-WYCR5DWQ.js";
31
+ } from "./chunk-HDG3VHYL.js";
32
32
  import {
33
33
  defined_default
34
- } from "./chunk-FPYBD2P5.js";
34
+ } from "./chunk-LMTGCD6P.js";
35
35
 
36
36
  // packages/engine/Source/Core/VertexFormat.js
37
37
  function VertexFormat(options) {
@@ -0,0 +1,280 @@
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
+
27
+ // node_modules/@cesium/wasm-splats/wasm_splats.js
28
+ var wasm;
29
+ var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
30
+ throw Error("TextDecoder not available");
31
+ } };
32
+ if (typeof TextDecoder !== "undefined") {
33
+ cachedTextDecoder.decode();
34
+ }
35
+ var cachedUint8ArrayMemory0 = null;
36
+ function getUint8ArrayMemory0() {
37
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
38
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
39
+ }
40
+ return cachedUint8ArrayMemory0;
41
+ }
42
+ function getStringFromWasm0(ptr, len) {
43
+ ptr = ptr >>> 0;
44
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
45
+ }
46
+ var cachedUint32ArrayMemory0 = null;
47
+ function getUint32ArrayMemory0() {
48
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
49
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
50
+ }
51
+ return cachedUint32ArrayMemory0;
52
+ }
53
+ function getArrayU32FromWasm0(ptr, len) {
54
+ ptr = ptr >>> 0;
55
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
56
+ }
57
+ var WASM_VECTOR_LEN = 0;
58
+ function passArray32ToWasm0(arg, malloc) {
59
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
60
+ getUint32ArrayMemory0().set(arg, ptr / 4);
61
+ WASM_VECTOR_LEN = arg.length;
62
+ return ptr;
63
+ }
64
+ function takeFromExternrefTable0(idx) {
65
+ const value = wasm.__wbindgen_export_0.get(idx);
66
+ wasm.__externref_table_dealloc(idx);
67
+ return value;
68
+ }
69
+ function generate_splat_texture(positions, scales, rotations, colors, count) {
70
+ const ret = wasm.generate_splat_texture(positions, scales, rotations, colors, count);
71
+ if (ret[2]) {
72
+ throw takeFromExternrefTable0(ret[1]);
73
+ }
74
+ return TextureData.__wrap(ret[0]);
75
+ }
76
+ function radix_sort_gaussians_indexes(positions_arr, model_view_arr, count) {
77
+ const ret = wasm.radix_sort_gaussians_indexes(positions_arr, model_view_arr, count);
78
+ if (ret[2]) {
79
+ throw takeFromExternrefTable0(ret[1]);
80
+ }
81
+ return takeFromExternrefTable0(ret[0]);
82
+ }
83
+ var TextureDataFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
84
+ }, unregister: () => {
85
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_texturedata_free(ptr >>> 0, 1));
86
+ var TextureData = class _TextureData {
87
+ static __wrap(ptr) {
88
+ ptr = ptr >>> 0;
89
+ const obj = Object.create(_TextureData.prototype);
90
+ obj.__wbg_ptr = ptr;
91
+ TextureDataFinalization.register(obj, obj.__wbg_ptr, obj);
92
+ return obj;
93
+ }
94
+ __destroy_into_raw() {
95
+ const ptr = this.__wbg_ptr;
96
+ this.__wbg_ptr = 0;
97
+ TextureDataFinalization.unregister(this);
98
+ return ptr;
99
+ }
100
+ free() {
101
+ const ptr = this.__destroy_into_raw();
102
+ wasm.__wbg_texturedata_free(ptr, 0);
103
+ }
104
+ /**
105
+ * Getter for the underlying texture data. Always returns a copy.
106
+ * @returns {Uint32Array}
107
+ */
108
+ get data() {
109
+ const ret = wasm.texturedata_data(this.__wbg_ptr);
110
+ var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
111
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
112
+ return v1;
113
+ }
114
+ /**
115
+ * Getter for the width of the texture in pixels.
116
+ * @returns {number}
117
+ */
118
+ get width() {
119
+ const ret = wasm.texturedata_width(this.__wbg_ptr);
120
+ return ret >>> 0;
121
+ }
122
+ /**
123
+ * Getter for the height of the texture in pixels.
124
+ * @returns {number}
125
+ */
126
+ get height() {
127
+ const ret = wasm.texturedata_height(this.__wbg_ptr);
128
+ return ret >>> 0;
129
+ }
130
+ /**
131
+ * Creates a new texture data object with the underlying data, width, and height.
132
+ * @param {Uint32Array} data
133
+ * @param {number} width
134
+ * @param {number} height
135
+ * @returns {TextureData}
136
+ */
137
+ static new(data, width, height) {
138
+ const ptr0 = passArray32ToWasm0(data, wasm.__wbindgen_malloc);
139
+ const len0 = WASM_VECTOR_LEN;
140
+ const ret = wasm.texturedata_new(ptr0, len0, width, height);
141
+ return _TextureData.__wrap(ret);
142
+ }
143
+ };
144
+ async function __wbg_load(module, imports) {
145
+ if (typeof Response === "function" && module instanceof Response) {
146
+ if (typeof WebAssembly.instantiateStreaming === "function") {
147
+ try {
148
+ return await WebAssembly.instantiateStreaming(module, imports);
149
+ } catch (e) {
150
+ if (module.headers.get("Content-Type") != "application/wasm") {
151
+ console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
152
+ } else {
153
+ throw e;
154
+ }
155
+ }
156
+ }
157
+ const bytes = await module.arrayBuffer();
158
+ return await WebAssembly.instantiate(bytes, imports);
159
+ } else {
160
+ const instance = await WebAssembly.instantiate(module, imports);
161
+ if (instance instanceof WebAssembly.Instance) {
162
+ return { instance, module };
163
+ } else {
164
+ return instance;
165
+ }
166
+ }
167
+ }
168
+ function __wbg_get_imports() {
169
+ const imports = {};
170
+ imports.wbg = {};
171
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
172
+ const ret = arg0.buffer;
173
+ return ret;
174
+ };
175
+ imports.wbg.__wbg_length_3b4f022188ae8db6 = function(arg0) {
176
+ const ret = arg0.length;
177
+ return ret;
178
+ };
179
+ imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
180
+ const ret = arg0.length;
181
+ return ret;
182
+ };
183
+ imports.wbg.__wbg_new_780abee5c1739fd7 = function(arg0) {
184
+ const ret = new Float32Array(arg0);
185
+ return ret;
186
+ };
187
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
188
+ const ret = new Uint8Array(arg0);
189
+ return ret;
190
+ };
191
+ imports.wbg.__wbg_new_e3b321dcfef89fc7 = function(arg0) {
192
+ const ret = new Uint32Array(arg0);
193
+ return ret;
194
+ };
195
+ imports.wbg.__wbg_newwithbyteoffsetandlength_f1dead44d1fc7212 = function(arg0, arg1, arg2) {
196
+ const ret = new Uint32Array(arg0, arg1 >>> 0, arg2 >>> 0);
197
+ return ret;
198
+ };
199
+ imports.wbg.__wbg_set_10bad9bee0e9c58b = function(arg0, arg1, arg2) {
200
+ arg0.set(arg1, arg2 >>> 0);
201
+ };
202
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
203
+ arg0.set(arg1, arg2 >>> 0);
204
+ };
205
+ imports.wbg.__wbindgen_init_externref_table = function() {
206
+ const table = wasm.__wbindgen_export_0;
207
+ const offset = table.grow(4);
208
+ table.set(0, void 0);
209
+ table.set(offset + 0, void 0);
210
+ table.set(offset + 1, null);
211
+ table.set(offset + 2, true);
212
+ table.set(offset + 3, false);
213
+ ;
214
+ };
215
+ imports.wbg.__wbindgen_memory = function() {
216
+ const ret = wasm.memory;
217
+ return ret;
218
+ };
219
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
220
+ const ret = getStringFromWasm0(arg0, arg1);
221
+ return ret;
222
+ };
223
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
224
+ throw new Error(getStringFromWasm0(arg0, arg1));
225
+ };
226
+ return imports;
227
+ }
228
+ function __wbg_init_memory(imports, memory) {
229
+ }
230
+ function __wbg_finalize_init(instance, module) {
231
+ wasm = instance.exports;
232
+ __wbg_init.__wbindgen_wasm_module = module;
233
+ cachedUint32ArrayMemory0 = null;
234
+ cachedUint8ArrayMemory0 = null;
235
+ wasm.__wbindgen_start();
236
+ return wasm;
237
+ }
238
+ function initSync(module) {
239
+ if (wasm !== void 0) return wasm;
240
+ if (typeof module !== "undefined") {
241
+ if (Object.getPrototypeOf(module) === Object.prototype) {
242
+ ({ module } = module);
243
+ } else {
244
+ console.warn("using deprecated parameters for `initSync()`; pass a single object instead");
245
+ }
246
+ }
247
+ const imports = __wbg_get_imports();
248
+ __wbg_init_memory(imports);
249
+ if (!(module instanceof WebAssembly.Module)) {
250
+ module = new WebAssembly.Module(module);
251
+ }
252
+ const instance = new WebAssembly.Instance(module, imports);
253
+ return __wbg_finalize_init(instance, module);
254
+ }
255
+ async function __wbg_init(module_or_path) {
256
+ if (wasm !== void 0) return wasm;
257
+ if (typeof module_or_path !== "undefined") {
258
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
259
+ ({ module_or_path } = module_or_path);
260
+ } else {
261
+ console.warn("using deprecated parameters for the initialization function; pass a single object instead");
262
+ }
263
+ }
264
+ if (typeof module_or_path === "undefined") {
265
+ module_or_path = new URL("wasm_splats_bg.wasm", import.meta.url);
266
+ }
267
+ const imports = __wbg_get_imports();
268
+ if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
269
+ module_or_path = fetch(module_or_path);
270
+ }
271
+ __wbg_init_memory(imports);
272
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
273
+ return __wbg_finalize_init(instance, module);
274
+ }
275
+
276
+ export {
277
+ generate_splat_texture,
278
+ radix_sort_gaussians_indexes,
279
+ initSync
280
+ };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.130
4
+ * Version 1.130.1-splats
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -26,7 +26,7 @@
26
26
  import {
27
27
  __commonJS,
28
28
  __require
29
- } from "./chunk-FPYBD2P5.js";
29
+ } from "./chunk-LMTGCD6P.js";
30
30
 
31
31
  // node_modules/draco3d/draco_decoder_nodejs.js
32
32
  var require_draco_decoder_nodejs = __commonJS({
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.130
4
+ * Version 1.130.1-splats
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -31,23 +31,23 @@ import {
31
31
  FeatureDetection_default,
32
32
  Frozen_default,
33
33
  Matrix3_default
34
- } from "./chunk-VGJSKEIB.js";
34
+ } from "./chunk-FOTXJYKS.js";
35
35
  import {
36
36
  Math_default
37
- } from "./chunk-NR7KSD56.js";
37
+ } from "./chunk-6EP7ED36.js";
38
38
  import {
39
39
  RuntimeError_default
40
- } from "./chunk-HS76VTVY.js";
40
+ } from "./chunk-RTUZ7MJB.js";
41
41
  import {
42
42
  Check_default,
43
43
  DeveloperError_default
44
- } from "./chunk-WYCR5DWQ.js";
44
+ } from "./chunk-HDG3VHYL.js";
45
45
  import {
46
46
  __commonJS,
47
47
  __require,
48
48
  __toESM,
49
49
  defined_default
50
- } from "./chunk-FPYBD2P5.js";
50
+ } from "./chunk-LMTGCD6P.js";
51
51
 
52
52
  // node_modules/urijs/src/punycode.js
53
53
  var require_punycode = __commonJS({
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.130
4
+ * Version 1.130.1-splats
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,14 +25,14 @@
25
25
 
26
26
  import {
27
27
  Math_default
28
- } from "./chunk-NR7KSD56.js";
28
+ } from "./chunk-6EP7ED36.js";
29
29
  import {
30
30
  Check_default,
31
31
  DeveloperError_default
32
- } from "./chunk-WYCR5DWQ.js";
32
+ } from "./chunk-HDG3VHYL.js";
33
33
  import {
34
34
  defined_default
35
- } from "./chunk-FPYBD2P5.js";
35
+ } from "./chunk-LMTGCD6P.js";
36
36
 
37
37
  // packages/engine/Source/Core/Cartesian3.js
38
38
  function Cartesian3(x, y, z) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.130
4
+ * Version 1.130.1-splats
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -26,16 +26,16 @@
26
26
  import {
27
27
  FeatureDetection_default,
28
28
  Frozen_default
29
- } from "./chunk-VGJSKEIB.js";
29
+ } from "./chunk-FOTXJYKS.js";
30
30
  import {
31
31
  Math_default
32
- } from "./chunk-NR7KSD56.js";
32
+ } from "./chunk-6EP7ED36.js";
33
33
  import {
34
34
  Check_default
35
- } from "./chunk-WYCR5DWQ.js";
35
+ } from "./chunk-HDG3VHYL.js";
36
36
  import {
37
37
  defined_default
38
- } from "./chunk-FPYBD2P5.js";
38
+ } from "./chunk-LMTGCD6P.js";
39
39
 
40
40
  // packages/engine/Source/Core/Color.js
41
41
  function hue2rgb(m1, m2, h) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.130
4
+ * Version 1.130.1-splats
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,35 +25,35 @@
25
25
 
26
26
  import {
27
27
  GeometryOffsetAttribute_default
28
- } from "./chunk-2AXPWBJG.js";
28
+ } from "./chunk-2SYY3UBI.js";
29
29
  import {
30
30
  VertexFormat_default
31
- } from "./chunk-EXEZHW3P.js";
31
+ } from "./chunk-ERPS2WZC.js";
32
32
  import {
33
33
  GeometryAttributes_default
34
- } from "./chunk-F4ZAKN4V.js";
34
+ } from "./chunk-BKTEHJFD.js";
35
35
  import {
36
36
  GeometryAttribute_default,
37
37
  Geometry_default,
38
38
  PrimitiveType_default
39
- } from "./chunk-NWSAYFZG.js";
39
+ } from "./chunk-DKKIQS6F.js";
40
40
  import {
41
41
  BoundingSphere_default
42
- } from "./chunk-J4MAVE6J.js";
42
+ } from "./chunk-6QOBORNG.js";
43
43
  import {
44
44
  ComponentDatatype_default
45
- } from "./chunk-UK33ZN4K.js";
45
+ } from "./chunk-2J5ZZ7CY.js";
46
46
  import {
47
47
  Cartesian3_default,
48
48
  Frozen_default
49
- } from "./chunk-VGJSKEIB.js";
49
+ } from "./chunk-FOTXJYKS.js";
50
50
  import {
51
51
  Check_default,
52
52
  DeveloperError_default
53
- } from "./chunk-WYCR5DWQ.js";
53
+ } from "./chunk-HDG3VHYL.js";
54
54
  import {
55
55
  defined_default
56
- } from "./chunk-FPYBD2P5.js";
56
+ } from "./chunk-LMTGCD6P.js";
57
57
 
58
58
  // packages/engine/Source/Core/BoxGeometry.js
59
59
  var diffScratch = new Cartesian3_default();
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.130
4
+ * Version 1.130.1-splats
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,7 +25,7 @@
25
25
 
26
26
  import {
27
27
  defined_default
28
- } from "./chunk-FPYBD2P5.js";
28
+ } from "./chunk-LMTGCD6P.js";
29
29
 
30
30
  // packages/engine/Source/Core/DeveloperError.js
31
31
  function DeveloperError(message) {