@rtzh/engine 0.0.12 → 0.0.13
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.
- package/Build/Workers/chunk-2J26NSQJ.js +57 -0
- package/Build/Workers/chunk-2ZWJOYYZ.js +497 -0
- package/Build/Workers/chunk-3ENHMKKX.js +1800 -0
- package/Build/Workers/chunk-47CWFJX6.js +124 -0
- package/Build/Workers/chunk-4VAD4BJM.js +55 -0
- package/Build/Workers/chunk-5DTY5JIA.js +256 -0
- package/Build/Workers/chunk-623LOZW5.js +511 -0
- package/Build/Workers/chunk-6WNAMM2J.js +368 -0
- package/Build/Workers/chunk-7IJ6YJDR.js +439 -0
- package/Build/Workers/chunk-A44RSIOC.js +138 -0
- package/Build/Workers/chunk-ALHM5LNB.js +163 -0
- package/Build/Workers/chunk-ASKKSAO2.js +114 -0
- package/Build/Workers/chunk-AUOSJ7RD.js +1483 -0
- package/Build/Workers/chunk-BLMLQN3N.js +288 -0
- package/Build/Workers/chunk-BLPBGSIN.js +778 -0
- package/Build/Workers/chunk-BVMMZTO2.js +73 -0
- package/Build/Workers/chunk-DQLCJMOH.js +692 -0
- package/Build/Workers/chunk-DU24KQOE.js +352 -0
- package/Build/Workers/chunk-EAXGQLHV.js +102 -0
- package/Build/Workers/chunk-EPAJ4UIR.js +75 -0
- package/Build/Workers/chunk-F2MK22SO.js +198 -0
- package/Build/Workers/chunk-F4XSN4LN.js +642 -0
- package/Build/Workers/chunk-FAVFRMK5.js +1317 -0
- package/Build/Workers/chunk-FKKXVIQS.js +58 -0
- package/Build/Workers/chunk-FQBOVVHM.js +2719 -0
- package/Build/Workers/chunk-HTTTEW64.js +305 -0
- package/Build/Workers/chunk-HZQONEX2.js +241 -0
- package/Build/Workers/chunk-ILNFTW5Z.js +788 -0
- package/Build/Workers/chunk-J6DW5QIM.js +55 -0
- package/Build/Workers/chunk-JCJRAI2M.js +8366 -0
- package/Build/Workers/chunk-JEFN4ZPU.js +44 -0
- package/Build/Workers/chunk-KWI3TOQ3.js +1460 -0
- package/Build/Workers/chunk-L63MA7DS.js +299 -0
- package/Build/Workers/chunk-LKCPP73L.js +139 -0
- package/Build/Workers/chunk-MBKDVX63.js +1067 -0
- package/Build/Workers/chunk-ODIGZZ3R.js +682 -0
- package/Build/Workers/chunk-Q2GNXOAO.js +414 -0
- package/Build/Workers/chunk-QCRUW3OJ.js +387 -0
- package/Build/Workers/chunk-QG2AN7NK.js +2058 -0
- package/Build/Workers/chunk-RGAJSVVU.js +1045 -0
- package/Build/Workers/chunk-RJJMDQTR.js +455 -0
- package/Build/Workers/chunk-RMYM65KX.js +629 -0
- package/Build/Workers/chunk-S3QVNBQ2.js +837 -0
- package/Build/Workers/chunk-SL6RUOEJ.js +1443 -0
- package/Build/Workers/chunk-TDP5NGTP.js +171 -0
- package/Build/Workers/chunk-TDQUDFAH.js +940 -0
- package/Build/Workers/chunk-TVCOYHIQ.js +1054 -0
- package/Build/Workers/chunk-TVVFCSTW.js +162 -0
- package/Build/Workers/chunk-UCLPK6WA.js +101 -0
- package/Build/Workers/chunk-UR5UUI2S.js +280 -0
- package/Build/Workers/chunk-VH6ZXWXV.js +398 -0
- package/Build/Workers/chunk-VU5DFAMV.js +97 -0
- package/Build/Workers/chunk-WMSJG24O.js +352 -0
- package/Build/Workers/chunk-X7RJMQRF.js +476 -0
- package/Build/Workers/chunk-XOKZRQNH.js +219 -0
- package/Build/Workers/chunk-YF767F7T.js +37 -0
- package/Build/Workers/chunk-YLNURUBI.js +3514 -0
- package/Build/Workers/combineGeometry.js +24 -24
- package/Build/Workers/createBoxGeometry.js +18 -18
- package/Build/Workers/createBoxOutlineGeometry.js +16 -16
- package/Build/Workers/createCircleGeometry.js +26 -26
- package/Build/Workers/createCircleOutlineGeometry.js +19 -19
- package/Build/Workers/createCoplanarPolygonGeometry.js +33 -33
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +31 -31
- package/Build/Workers/createCorridorGeometry.js +29 -29
- package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
- package/Build/Workers/createCylinderGeometry.js +20 -20
- package/Build/Workers/createCylinderOutlineGeometry.js +18 -18
- package/Build/Workers/createEllipseGeometry.js +26 -26
- package/Build/Workers/createEllipseOutlineGeometry.js +19 -19
- package/Build/Workers/createEllipsoidGeometry.js +19 -19
- package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -18
- package/Build/Workers/createFrustumGeometry.js +18 -18
- package/Build/Workers/createFrustumOutlineGeometry.js +18 -18
- package/Build/Workers/createGeometry.js +24 -24
- package/Build/Workers/createGroundPolylineGeometry.js +22 -22
- package/Build/Workers/createPlaneGeometry.js +16 -16
- package/Build/Workers/createPlaneOutlineGeometry.js +15 -15
- package/Build/Workers/createPolygonGeometry.js +32 -32
- package/Build/Workers/createPolygonOutlineGeometry.js +30 -30
- package/Build/Workers/createPolylineGeometry.js +25 -25
- package/Build/Workers/createPolylineVolumeGeometry.js +31 -31
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -27
- package/Build/Workers/createRectangleGeometry.js +27 -27
- package/Build/Workers/createRectangleOutlineGeometry.js +20 -20
- package/Build/Workers/createSimplePolylineGeometry.js +23 -23
- package/Build/Workers/createSphereGeometry.js +19 -19
- package/Build/Workers/createSphereOutlineGeometry.js +18 -18
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
- package/Build/Workers/createVectorTileGeometries.js +24 -24
- package/Build/Workers/createVectorTilePoints.js +13 -13
- package/Build/Workers/createVectorTilePolygons.js +22 -22
- package/Build/Workers/createVectorTilePolylines.js +14 -14
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -22
- package/Build/Workers/createVerticesFromHeightmap.js +22 -22
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +20 -20
- package/Build/Workers/createWallGeometry.js +24 -24
- package/Build/Workers/createWallOutlineGeometry.js +23 -23
- package/Build/Workers/decodeDraco.js +10 -10
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/gaussianSplatSorter.js +4 -4
- package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
- package/Build/Workers/incrementallyBuildTerrainPicker.js +10 -10
- package/Build/Workers/transcodeKTX2.js +6 -6
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +22 -22
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Source/Scene/Model/CPUStylingPipelineStage.js +4 -1
- package/Source/Scene/Model/CustomShader.js +21 -0
- package/Source/Scene/Model/CustomShaderPipelineStage.js +9 -0
- package/Source/Scene/Model/ModelDrawCommand.js +52 -3
- package/Source/Shaders/Model/CPUStylingStageFS.glsl +4 -1
- package/Source/Shaders/Model/CPUStylingStageFS.js +4 -1
- package/Source/Shaders/Model/CPUStylingStageVS.glsl +4 -1
- package/Source/Shaders/Model/CPUStylingStageVS.js +4 -1
- package/Source/Shaders/Model/ModelFS.glsl +11 -9
- package/Source/Shaders/Model/ModelFS.js +11 -9
- package/index.d.ts +8 -0
- package/index.js +64 -64
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.
|
|
4
|
+
* Version 0.0.14
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,51 +25,51 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
WallGeometryLibrary_default
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-F2MK22SO.js";
|
|
29
|
+
import "./chunk-Q2GNXOAO.js";
|
|
30
|
+
import "./chunk-DU24KQOE.js";
|
|
31
|
+
import "./chunk-VU5DFAMV.js";
|
|
32
|
+
import "./chunk-RJJMDQTR.js";
|
|
33
|
+
import "./chunk-FAVFRMK5.js";
|
|
34
|
+
import "./chunk-TDP5NGTP.js";
|
|
35
35
|
import {
|
|
36
36
|
IndexDatatype_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LKCPP73L.js";
|
|
38
38
|
import {
|
|
39
39
|
GeometryAttributes_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-JEFN4ZPU.js";
|
|
41
41
|
import {
|
|
42
42
|
GeometryAttribute_default,
|
|
43
43
|
Geometry_default,
|
|
44
44
|
PrimitiveType_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-L63MA7DS.js";
|
|
46
46
|
import {
|
|
47
47
|
BoundingSphere_default
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-TDQUDFAH.js";
|
|
49
|
+
import "./chunk-J6DW5QIM.js";
|
|
50
|
+
import "./chunk-JCJRAI2M.js";
|
|
51
|
+
import "./chunk-QG2AN7NK.js";
|
|
52
52
|
import {
|
|
53
53
|
ComponentDatatype_default
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
54
|
+
} from "./chunk-5DTY5JIA.js";
|
|
55
|
+
import "./chunk-RMYM65KX.js";
|
|
56
|
+
import "./chunk-FKKXVIQS.js";
|
|
57
57
|
import {
|
|
58
58
|
Ellipsoid_default
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-KWI3TOQ3.js";
|
|
60
60
|
import {
|
|
61
61
|
Cartesian3_default,
|
|
62
62
|
Frozen_default
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-SL6RUOEJ.js";
|
|
64
64
|
import {
|
|
65
65
|
Math_default
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-2ZWJOYYZ.js";
|
|
67
67
|
import {
|
|
68
68
|
DeveloperError_default
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-ALHM5LNB.js";
|
|
70
70
|
import {
|
|
71
71
|
defined_default
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-EPAJ4UIR.js";
|
|
73
73
|
|
|
74
74
|
// packages/engine/Source/Core/WallOutlineGeometry.js
|
|
75
75
|
var scratchCartesian3Position1 = new Cartesian3_default();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.
|
|
4
|
+
* Version 0.0.14
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,26 +25,26 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
require_draco_decoder_nodejs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3ENHMKKX.js";
|
|
29
29
|
import {
|
|
30
30
|
createTaskProcessorWorker_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-UCLPK6WA.js";
|
|
32
32
|
import {
|
|
33
33
|
IndexDatatype_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-LKCPP73L.js";
|
|
35
35
|
import {
|
|
36
36
|
ComponentDatatype_default
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-5DTY5JIA.js";
|
|
38
|
+
import "./chunk-RMYM65KX.js";
|
|
39
39
|
import {
|
|
40
40
|
RuntimeError_default
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-FKKXVIQS.js";
|
|
42
|
+
import "./chunk-2ZWJOYYZ.js";
|
|
43
|
+
import "./chunk-ALHM5LNB.js";
|
|
44
44
|
import {
|
|
45
45
|
__toESM,
|
|
46
46
|
defined_default
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-EPAJ4UIR.js";
|
|
48
48
|
|
|
49
49
|
// packages/engine/Source/Workers/decodeDraco.js
|
|
50
50
|
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 0.0.
|
|
4
|
+
* Version 0.0.14
|
|
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-
|
|
28
|
+
} from "./chunk-UCLPK6WA.js";
|
|
29
29
|
import {
|
|
30
30
|
RuntimeError_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FKKXVIQS.js";
|
|
32
32
|
import {
|
|
33
33
|
Check_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ALHM5LNB.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__toESM,
|
|
38
38
|
defined_default
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-EPAJ4UIR.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 0.0.
|
|
4
|
+
* Version 0.0.14
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,34 +25,34 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
require_draco_decoder_nodejs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3ENHMKKX.js";
|
|
29
29
|
import {
|
|
30
30
|
Color_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-F4XSN4LN.js";
|
|
32
32
|
import {
|
|
33
33
|
createTaskProcessorWorker_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UCLPK6WA.js";
|
|
35
35
|
import {
|
|
36
36
|
WebMercatorProjection_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ASKKSAO2.js";
|
|
38
38
|
import {
|
|
39
39
|
Cartographic_default,
|
|
40
40
|
Ellipsoid_default
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-KWI3TOQ3.js";
|
|
42
42
|
import {
|
|
43
43
|
Cartesian3_default,
|
|
44
44
|
Matrix3_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-SL6RUOEJ.js";
|
|
46
46
|
import {
|
|
47
47
|
Math_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-2ZWJOYYZ.js";
|
|
49
49
|
import {
|
|
50
50
|
Check_default
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ALHM5LNB.js";
|
|
52
52
|
import {
|
|
53
53
|
__toESM,
|
|
54
54
|
defined_default
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-EPAJ4UIR.js";
|
|
56
56
|
|
|
57
57
|
// packages/engine/Source/Workers/decodeI3S.js
|
|
58
58
|
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 0.0.
|
|
4
|
+
* Version 0.0.14
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
import {
|
|
27
27
|
initSync,
|
|
28
28
|
radix_sort_gaussians_indexes
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UR5UUI2S.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UCLPK6WA.js";
|
|
33
33
|
import {
|
|
34
34
|
defined_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-EPAJ4UIR.js";
|
|
36
36
|
|
|
37
37
|
// packages/engine/Source/Workers/gaussianSplatSorter.js
|
|
38
38
|
async function initWorker(parameters, transferableObjects) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.
|
|
4
|
+
* Version 0.0.14
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
import {
|
|
27
27
|
generate_splat_texture,
|
|
28
28
|
initSync
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UR5UUI2S.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UCLPK6WA.js";
|
|
33
33
|
import {
|
|
34
34
|
defined_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-EPAJ4UIR.js";
|
|
36
36
|
|
|
37
37
|
// packages/engine/Source/Workers/gaussianSplatTextureGenerator.js
|
|
38
38
|
async function initWorker(parameters, transferableObjects) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.
|
|
4
|
+
* Version 0.0.14
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
createTaskProcessorWorker_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-UCLPK6WA.js";
|
|
29
29
|
import {
|
|
30
30
|
AxisAlignedBoundingBox_default
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-TVVFCSTW.js";
|
|
32
|
+
import "./chunk-J6DW5QIM.js";
|
|
33
33
|
import {
|
|
34
34
|
Matrix4_default
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-QG2AN7NK.js";
|
|
36
|
+
import "./chunk-FKKXVIQS.js";
|
|
37
37
|
import {
|
|
38
38
|
Cartesian3_default
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-SL6RUOEJ.js";
|
|
40
|
+
import "./chunk-2ZWJOYYZ.js";
|
|
41
|
+
import "./chunk-ALHM5LNB.js";
|
|
42
|
+
import "./chunk-EPAJ4UIR.js";
|
|
43
43
|
|
|
44
44
|
// packages/engine/Source/Workers/incrementallyBuildTerrainPicker.js
|
|
45
45
|
var scratchAABBCornerMin = new Cartesian3_default();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.
|
|
4
|
+
* Version 0.0.14
|
|
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-
|
|
28
|
+
} from "./chunk-UCLPK6WA.js";
|
|
29
29
|
import {
|
|
30
30
|
WebGLConstants_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RMYM65KX.js";
|
|
32
32
|
import {
|
|
33
33
|
RuntimeError_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FKKXVIQS.js";
|
|
35
35
|
import {
|
|
36
36
|
Check_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ALHM5LNB.js";
|
|
38
38
|
import {
|
|
39
39
|
__commonJS,
|
|
40
40
|
__require,
|
|
41
41
|
__toESM,
|
|
42
42
|
defined_default
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-EPAJ4UIR.js";
|
|
44
44
|
|
|
45
45
|
// packages/engine/Source/ThirdParty/Workers/basis_transcoder.js
|
|
46
46
|
var require_basis_transcoder = __commonJS({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.
|
|
4
|
+
* Version 0.0.14
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,52 +26,52 @@
|
|
|
26
26
|
import {
|
|
27
27
|
EllipsoidalOccluder_default,
|
|
28
28
|
TerrainEncoding_default
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ILNFTW5Z.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UCLPK6WA.js";
|
|
33
33
|
import {
|
|
34
34
|
OrientedBoundingBox_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-S3QVNBQ2.js";
|
|
36
36
|
import {
|
|
37
37
|
AttributeCompression_default
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-7IJ6YJDR.js";
|
|
39
|
+
import "./chunk-BLMLQN3N.js";
|
|
40
|
+
import "./chunk-TVVFCSTW.js";
|
|
41
|
+
import "./chunk-FAVFRMK5.js";
|
|
42
|
+
import "./chunk-TDP5NGTP.js";
|
|
43
43
|
import {
|
|
44
44
|
IndexDatatype_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-LKCPP73L.js";
|
|
46
46
|
import {
|
|
47
47
|
BoundingSphere_default
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-TDQUDFAH.js";
|
|
49
|
+
import "./chunk-J6DW5QIM.js";
|
|
50
50
|
import {
|
|
51
51
|
Rectangle_default
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-JCJRAI2M.js";
|
|
53
|
+
import "./chunk-QG2AN7NK.js";
|
|
54
|
+
import "./chunk-5DTY5JIA.js";
|
|
55
|
+
import "./chunk-RMYM65KX.js";
|
|
56
|
+
import "./chunk-FKKXVIQS.js";
|
|
57
57
|
import {
|
|
58
58
|
Cartesian2_default,
|
|
59
59
|
Cartographic_default,
|
|
60
60
|
Ellipsoid_default
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-KWI3TOQ3.js";
|
|
62
62
|
import {
|
|
63
63
|
Cartesian3_default
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-SL6RUOEJ.js";
|
|
65
65
|
import {
|
|
66
66
|
Math_default
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-2ZWJOYYZ.js";
|
|
68
68
|
import {
|
|
69
69
|
Check_default,
|
|
70
70
|
DeveloperError_default
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-ALHM5LNB.js";
|
|
72
72
|
import {
|
|
73
73
|
defined_default
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-EPAJ4UIR.js";
|
|
75
75
|
|
|
76
76
|
// packages/engine/Source/Core/Intersections2D.js
|
|
77
77
|
var Intersections2D = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.
|
|
4
|
+
* Version 0.0.14
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,32 +25,32 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
Cesium3DTilesTerrainGeometryProcessor_default
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-YLNURUBI.js";
|
|
29
|
+
import "./chunk-WMSJG24O.js";
|
|
30
|
+
import "./chunk-ILNFTW5Z.js";
|
|
31
31
|
import {
|
|
32
32
|
createTaskProcessorWorker_default
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-UCLPK6WA.js";
|
|
34
|
+
import "./chunk-ASKKSAO2.js";
|
|
35
|
+
import "./chunk-S3QVNBQ2.js";
|
|
36
|
+
import "./chunk-7IJ6YJDR.js";
|
|
37
|
+
import "./chunk-BLMLQN3N.js";
|
|
38
|
+
import "./chunk-TVVFCSTW.js";
|
|
39
|
+
import "./chunk-FAVFRMK5.js";
|
|
40
|
+
import "./chunk-TDP5NGTP.js";
|
|
41
|
+
import "./chunk-LKCPP73L.js";
|
|
42
|
+
import "./chunk-TDQUDFAH.js";
|
|
43
|
+
import "./chunk-J6DW5QIM.js";
|
|
44
|
+
import "./chunk-JCJRAI2M.js";
|
|
45
|
+
import "./chunk-QG2AN7NK.js";
|
|
46
|
+
import "./chunk-5DTY5JIA.js";
|
|
47
|
+
import "./chunk-RMYM65KX.js";
|
|
48
|
+
import "./chunk-FKKXVIQS.js";
|
|
49
|
+
import "./chunk-KWI3TOQ3.js";
|
|
50
|
+
import "./chunk-SL6RUOEJ.js";
|
|
51
|
+
import "./chunk-2ZWJOYYZ.js";
|
|
52
|
+
import "./chunk-ALHM5LNB.js";
|
|
53
|
+
import "./chunk-EPAJ4UIR.js";
|
|
54
54
|
|
|
55
55
|
// packages/engine/Source/Workers/upsampleVerticesFromCesium3DTilesTerrain.js
|
|
56
56
|
function upsampleVerticesFromCesium3DTilesTerrain(options, transferableObjects) {
|
|
@@ -70,7 +70,10 @@ CPUStylingPipelineStage.process = function (
|
|
|
70
70
|
renderResources.uniformMap.model_commandTranslucent = function () {
|
|
71
71
|
// Always check the current value, because custom shaders may
|
|
72
72
|
// change the value with the translucencyMode parameter
|
|
73
|
-
return
|
|
73
|
+
return (
|
|
74
|
+
renderResources.inheritedTranslucent === true ||
|
|
75
|
+
renderResources.alphaOptions.pass === Pass.TRANSLUCENT
|
|
76
|
+
);
|
|
74
77
|
};
|
|
75
78
|
};
|
|
76
79
|
|
|
@@ -79,6 +79,7 @@ import CustomShaderTranslucencyMode from "./CustomShaderTranslucencyMode.js";
|
|
|
79
79
|
* @param {LightingModel} [options.lightingModel] The lighting model (e.g. PBR or unlit). If present, this overrides the default lighting for the model.
|
|
80
80
|
* @param {CustomShaderTranslucencyMode} [options.translucencyMode=CustomShaderTranslucencyMode.INHERIT] The translucency mode, which determines how the custom shader will be applied. If the value is CustomShaderTransulcencyMode.OPAQUE or CustomShaderTransulcencyMode.TRANSLUCENT, the custom shader will override settings from the model's material. If the value is CustomShaderTransulcencyMode.INHERIT, the custom shader will render as either opaque or translucent depending on the primitive's material settings.
|
|
81
81
|
* AUTO classifies final fragment alpha using opaque and translucent commands sharing geometry.
|
|
82
|
+
* @param {boolean} [options.autoTranslucencyEnabled=true] Whether AUTO classifies final alpha. Set to false to use the model's inherited passes.
|
|
82
83
|
* @param {Object<string, UniformSpecifier>} [options.uniforms] A dictionary for user-defined uniforms. The key is the uniform name that will appear in the GLSL code. The value is an object that describes the uniform type and initial value
|
|
83
84
|
* @param {Object<string, VaryingType>} [options.varyings] A dictionary for declaring additional GLSL varyings used in the shader. The key is the varying name that will appear in the GLSL code. The value is the data type of the varying. For each varying, the declaration will be added to the top of the shader automatically. The caller is responsible for assigning a value in the vertex shader and using the value in the fragment shader.
|
|
84
85
|
* @param {string} [options.vertexShaderText] The custom vertex shader as a string of GLSL code. It must include a GLSL function called vertexMain. See the example for the expected signature. If not specified, the custom vertex shader step will be skipped in the computed vertex shader.
|
|
@@ -181,6 +182,7 @@ function CustomShader(options) {
|
|
|
181
182
|
*/
|
|
182
183
|
this.translucencyMode =
|
|
183
184
|
options.translucencyMode ?? CustomShaderTranslucencyMode.INHERIT;
|
|
185
|
+
this._autoTranslucencyEnabled = options.autoTranslucencyEnabled ?? true;
|
|
184
186
|
|
|
185
187
|
/**
|
|
186
188
|
* texture uniforms require some asynchronous processing. This is delegated
|
|
@@ -431,6 +433,25 @@ CustomShader.prototype.setUniform = function (uniformName, value) {
|
|
|
431
433
|
}
|
|
432
434
|
};
|
|
433
435
|
|
|
436
|
+
Object.defineProperties(CustomShader.prototype, {
|
|
437
|
+
/**
|
|
438
|
+
* Whether an AUTO shader classifies final fragment alpha. Changing this
|
|
439
|
+
* property reuses the shader and draw commands. When false, command
|
|
440
|
+
* submission and style filtering use the model's inherited passes.
|
|
441
|
+
* @memberof CustomShader.prototype
|
|
442
|
+
* @type {boolean}
|
|
443
|
+
* @default true
|
|
444
|
+
*/
|
|
445
|
+
autoTranslucencyEnabled: {
|
|
446
|
+
get: function () {
|
|
447
|
+
return this._autoTranslucencyEnabled;
|
|
448
|
+
},
|
|
449
|
+
set: function (value) {
|
|
450
|
+
this._autoTranslucencyEnabled = value;
|
|
451
|
+
},
|
|
452
|
+
},
|
|
453
|
+
});
|
|
454
|
+
|
|
434
455
|
CustomShader.prototype.update = function (frameState) {
|
|
435
456
|
this._defaultTexture = frameState.context.defaultTexture;
|
|
436
457
|
this._textureManager.update(frameState);
|
|
@@ -85,12 +85,21 @@ CustomShaderPipelineStage.process = function (
|
|
|
85
85
|
|
|
86
86
|
if (translucencyMode === CustomShaderTranslucencyMode.AUTO) {
|
|
87
87
|
renderResources.autoTranslucency = true;
|
|
88
|
+
renderResources.inheritedTranslucent =
|
|
89
|
+
alphaOptions.pass === Pass.TRANSLUCENT;
|
|
88
90
|
alphaOptions.pass = undefined;
|
|
89
91
|
shaderBuilder.addDefine(
|
|
90
92
|
"CUSTOM_SHADER_AUTO_TRANSLUCENCY",
|
|
91
93
|
undefined,
|
|
92
94
|
ShaderDestination.BOTH,
|
|
93
95
|
);
|
|
96
|
+
shaderBuilder.addUniform(
|
|
97
|
+
"bool",
|
|
98
|
+
"model_autoTranslucencyEnabled",
|
|
99
|
+
ShaderDestination.BOTH,
|
|
100
|
+
);
|
|
101
|
+
renderResources.uniformMap.model_autoTranslucencyEnabled = () =>
|
|
102
|
+
customShader.autoTranslucencyEnabled;
|
|
94
103
|
} else if (translucencyMode === CustomShaderTranslucencyMode.TRANSLUCENT) {
|
|
95
104
|
alphaOptions.pass = Pass.TRANSLUCENT;
|
|
96
105
|
} else if (translucencyMode === CustomShaderTranslucencyMode.OPAQUE) {
|