@cesium/engine 6.1.0 → 6.2.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.
- package/Build/Workers/{chunk-IQCBK4CE.js → chunk-3PW6ZBN4.js} +8 -304
- package/Build/Workers/{chunk-U5O26DDO.js → chunk-434ZTTFX.js} +2 -2
- package/Build/Workers/{chunk-DNCKFFNR.js → chunk-4KP73B43.js} +3 -3
- package/Build/Workers/{chunk-TIEL2RYB.js → chunk-52VSIKEA.js} +16 -16
- package/Build/Workers/{chunk-6JRDO2JP.js → chunk-5GDBZTHX.js} +18 -18
- package/Build/Workers/{chunk-WYMW5NZB.js → chunk-5HLGKKG3.js} +2 -2
- package/Build/Workers/{chunk-R5NOUYKW.js → chunk-5IRLXUTA.js} +7 -7
- package/Build/Workers/{chunk-4EXWKTY2.js → chunk-5SK36PU4.js} +8 -8
- package/Build/Workers/{chunk-UJ76JVUZ.js → chunk-ARPTYYKS.js} +5 -5
- package/Build/Workers/{chunk-2GWOHAWL.js → chunk-ATB2I7OS.js} +4 -4
- package/Build/Workers/{chunk-6LG4PY2M.js → chunk-AXFRNOVC.js} +12 -12
- package/Build/Workers/{chunk-A3TYRSRJ.js → chunk-BP467WX3.js} +4 -4
- package/Build/Workers/{chunk-I5XKU3UZ.js → chunk-BUZDZBUH.js} +11 -13
- package/Build/Workers/{chunk-N3OQDJDV.js → chunk-CDGHUKQ4.js} +13 -13
- package/Build/Workers/{chunk-7ISAYW2A.js → chunk-CSIZ3BGT.js} +15 -17
- package/Build/Workers/{chunk-N73NY3KY.js → chunk-CWJQGBWT.js} +1 -1
- package/Build/Workers/{chunk-E5HIGWSZ.js → chunk-DMCSY5BU.js} +5 -5
- package/Build/Workers/{chunk-JY6WB2NK.js → chunk-DR5XZ6K5.js} +13 -13
- package/Build/Workers/{chunk-4MPXTOW6.js → chunk-FWGNCYP6.js} +7 -7
- package/Build/Workers/{chunk-LID3UUML.js → chunk-GF5TNNKP.js} +6 -6
- package/Build/Workers/{chunk-ULABUYF6.js → chunk-GVL5I7TC.js} +18 -20
- package/Build/Workers/{chunk-4JETNOH2.js → chunk-H5DUXHCV.js} +11 -11
- package/Build/Workers/{chunk-QX5ASOZZ.js → chunk-HFKSAB5K.js} +14 -16
- package/Build/Workers/{chunk-XKGSTUQO.js → chunk-HOT2SNXP.js} +15 -20
- package/Build/Workers/{chunk-ICD3BWBC.js → chunk-HPH5HSFE.js} +2 -2
- package/Build/Workers/{chunk-FNHGOHCI.js → chunk-HPP4JLNH.js} +8 -8
- package/Build/Workers/{chunk-HX5XY3NH.js → chunk-HUPNRBWW.js} +6 -6
- package/Build/Workers/{chunk-EEL3YC6V.js → chunk-JGG36SQV.js} +4 -4
- package/Build/Workers/{chunk-54GSYZWT.js → chunk-LGJUI2CE.js} +325 -5
- package/Build/Workers/{chunk-PNAD2XAN.js → chunk-LGL4P5KL.js} +6 -6
- package/Build/Workers/{chunk-CKOGHQ6J.js → chunk-LX6XV4DK.js} +5 -5
- package/Build/Workers/{chunk-ZERWARDV.js → chunk-MN34FIF5.js} +1 -1
- package/Build/Workers/{chunk-MMNPUV23.js → chunk-MW3CJYLX.js} +2 -2
- package/Build/Workers/{chunk-KFCTEEBD.js → chunk-NE4JNU6H.js} +31 -21
- package/Build/Workers/{chunk-DHO4HQHW.js → chunk-O43GWBSF.js} +1 -1
- package/Build/Workers/{chunk-EH2PEDWL.js → chunk-PIXK6KHB.js} +2 -2
- package/Build/Workers/{chunk-TDVU7NH7.js → chunk-PZ2WJWUG.js} +6 -6
- package/Build/Workers/{chunk-AEADHPUM.js → chunk-QRBRVGZC.js} +4 -4
- package/Build/Workers/{chunk-VIAGIVGP.js → chunk-QTZQZY2C.js} +9 -9
- package/Build/Workers/{chunk-3R5RPSYS.js → chunk-R3HUGXBH.js} +9 -9
- package/Build/Workers/{chunk-IDAL54EF.js → chunk-R4OZKBXH.js} +6 -6
- package/Build/Workers/{chunk-CHGQXPF3.js → chunk-RH4N2ONY.js} +7 -7
- package/Build/Workers/{chunk-YK5RU5AO.js → chunk-RIDPF7PO.js} +2 -2
- package/Build/Workers/{chunk-CZFGXAMG.js → chunk-SNN7WOC2.js} +13 -13
- package/Build/Workers/{chunk-F66GYWDZ.js → chunk-SQVTYRZY.js} +5 -7
- package/Build/Workers/{chunk-XNRYWRVT.js → chunk-SV7DDPAC.js} +1 -1
- package/Build/Workers/{chunk-P2BTKBVY.js → chunk-TIXXVKUY.js} +11 -11
- package/Build/Workers/{chunk-AI2FOC47.js → chunk-TMPVBFJQ.js} +11 -11
- package/Build/Workers/{chunk-4CHSBZNO.js → chunk-XUTVA4K5.js} +11 -11
- package/Build/Workers/{chunk-DD2PDL6D.js → chunk-Y4OJ4B23.js} +5 -5
- package/Build/Workers/{chunk-FMN2NHBU.js → chunk-YBKFS53K.js} +1 -1
- package/Build/Workers/{chunk-BLXANKPB.js → chunk-Z2SIPUKB.js} +6 -6
- package/Build/Workers/{chunk-5HUDPV54.js → chunk-Z4JUBRHP.js} +6 -6
- package/Build/Workers/{chunk-N7FIYNQV.js → chunk-ZQRZBHYI.js} +4 -4
- package/Build/Workers/combineGeometry.js +23 -23
- package/Build/Workers/createBoxGeometry.js +17 -17
- package/Build/Workers/createBoxOutlineGeometry.js +15 -15
- package/Build/Workers/createCircleGeometry.js +25 -25
- package/Build/Workers/createCircleOutlineGeometry.js +18 -18
- package/Build/Workers/createCoplanarPolygonGeometry.js +33 -34
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +30 -30
- package/Build/Workers/createCorridorGeometry.js +29 -29
- package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
- package/Build/Workers/createCylinderGeometry.js +19 -19
- package/Build/Workers/createCylinderOutlineGeometry.js +18 -19
- package/Build/Workers/createEllipseGeometry.js +25 -25
- package/Build/Workers/createEllipseOutlineGeometry.js +18 -18
- package/Build/Workers/createEllipsoidGeometry.js +18 -18
- package/Build/Workers/createEllipsoidOutlineGeometry.js +17 -17
- package/Build/Workers/createFrustumGeometry.js +17 -17
- package/Build/Workers/createFrustumOutlineGeometry.js +17 -17
- package/Build/Workers/createGeometry.js +23 -23
- package/Build/Workers/createGroundPolylineGeometry.js +22 -22
- package/Build/Workers/createPlaneGeometry.js +15 -15
- package/Build/Workers/createPlaneOutlineGeometry.js +14 -14
- package/Build/Workers/createPolygonGeometry.js +34 -34
- package/Build/Workers/createPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createPolylineGeometry.js +24 -24
- package/Build/Workers/createPolylineVolumeGeometry.js +32 -33
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +28 -29
- package/Build/Workers/createRectangleGeometry.js +27 -27
- package/Build/Workers/createRectangleOutlineGeometry.js +21 -23
- package/Build/Workers/createSimplePolylineGeometry.js +22 -22
- package/Build/Workers/createSphereGeometry.js +18 -18
- package/Build/Workers/createSphereOutlineGeometry.js +17 -17
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
- package/Build/Workers/createVectorTileGeometries.js +23 -23
- package/Build/Workers/createVectorTilePoints.js +12 -12
- package/Build/Workers/createVectorTilePolygons.js +21 -21
- package/Build/Workers/createVectorTilePolylines.js +14 -14
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -22
- package/Build/Workers/createVerticesFromHeightmap.js +22 -22
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +19 -19
- package/Build/Workers/createWallGeometry.js +23 -23
- package/Build/Workers/createWallOutlineGeometry.js +22 -22
- package/Build/Workers/decodeDraco.js +11 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +9 -9
- package/Build/Workers/transcodeKTX2.js +9 -9
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +22 -22
- package/Source/Core/CesiumTerrainProvider.js +11 -4
- package/Source/Core/Ellipsoid.js +45 -0
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/Quaternion.js +6 -2
- package/Source/Core/RectangleOutlineGeometry.js +2 -4
- package/Source/Core/RequestScheduler.js +3 -9
- package/Source/Core/TerrainEncoding.js +2 -2
- package/Source/Core/VerticalExaggeration.js +69 -0
- package/Source/Renderer/AutomaticUniforms.js +53 -0
- package/Source/Renderer/UniformState.js +119 -1
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Cesium3DTile.js +122 -10
- package/Source/Scene/Cesium3DTileset.js +1 -1
- package/Source/Scene/FrameState.js +4 -4
- package/Source/Scene/Globe.js +66 -19
- package/Source/Scene/GlobeSurfaceTile.js +4 -4
- package/Source/Scene/GlobeSurfaceTileProvider.js +21 -21
- package/Source/Scene/GroundPrimitive.js +5 -5
- package/Source/Scene/ImageryLayer.js +3 -3
- package/Source/Scene/IonImageryProvider.js +1 -1
- package/Source/Scene/MapboxImageryProvider.js +2 -2
- package/Source/Scene/Megatexture.js +1 -1
- package/Source/Scene/Model/Model.js +11 -0
- package/Source/Scene/Model/ModelRuntimePrimitive.js +6 -0
- package/Source/Scene/Model/VerticalExaggerationPipelineStage.js +60 -0
- package/Source/Scene/Scene.js +28 -3
- package/Source/Scene/ScreenSpaceCameraController.js +12 -19
- package/Source/Scene/TerrainFillMesh.js +2 -2
- package/Source/Scene/TileOrientedBoundingBox.js +1 -1
- package/Source/Scene/VoxelPrimitive.js +73 -2
- package/Source/Shaders/GlobeVS.glsl +3 -3
- package/Source/Shaders/GlobeVS.js +3 -3
- package/Source/Shaders/Model/ModelVS.glsl +4 -0
- package/Source/Shaders/Model/ModelVS.js +4 -0
- package/Source/Shaders/Model/VerticalExaggerationStageVS.glsl +39 -0
- package/Source/Shaders/Model/VerticalExaggerationStageVS.js +41 -0
- package/index.d.ts +39 -22
- package/index.js +590 -588
- package/package.json +2 -2
- package/Source/Core/TerrainExaggeration.js +0 -49
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
void verticalExaggerationStage(
|
|
2
|
+
inout ProcessedAttributes attributes
|
|
3
|
+
) {
|
|
4
|
+
// Compute the distance from the camera to the local center of curvature.
|
|
5
|
+
vec4 vertexPositionENU = czm_modelToEnu * vec4(attributes.positionMC, 1.0);
|
|
6
|
+
vec2 vertexAzimuth = normalize(vertexPositionENU.xy);
|
|
7
|
+
// Curvature = 1 / radius of curvature.
|
|
8
|
+
float azimuthalCurvature = dot(vertexAzimuth * vertexAzimuth, czm_eyeEllipsoidCurvature);
|
|
9
|
+
float eyeToCenter = 1.0 / azimuthalCurvature + czm_eyeHeight;
|
|
10
|
+
|
|
11
|
+
// Compute the approximate ellipsoid normal at the vertex position.
|
|
12
|
+
// Uses a circular approximation for the Earth curvature along the geodesic.
|
|
13
|
+
vec3 vertexPositionEC = (czm_modelView * vec4(attributes.positionMC, 1.0)).xyz;
|
|
14
|
+
vec3 centerToVertex = eyeToCenter * czm_eyeEllipsoidNormalEC + vertexPositionEC;
|
|
15
|
+
vec3 vertexNormal = normalize(centerToVertex);
|
|
16
|
+
|
|
17
|
+
// Estimate the (sine of the) angle between the camera direction and the vertex normal
|
|
18
|
+
float verticalDistance = dot(vertexPositionEC, czm_eyeEllipsoidNormalEC);
|
|
19
|
+
float horizontalDistance = length(vertexPositionEC - verticalDistance * czm_eyeEllipsoidNormalEC);
|
|
20
|
+
float sinTheta = horizontalDistance / (eyeToCenter + verticalDistance);
|
|
21
|
+
bool isSmallAngle = clamp(sinTheta, 0.0, 0.05) == sinTheta;
|
|
22
|
+
|
|
23
|
+
// Approximate the change in height above the ellipsoid, from camera to vertex position.
|
|
24
|
+
float exactVersine = 1.0 - dot(czm_eyeEllipsoidNormalEC, vertexNormal);
|
|
25
|
+
float smallAngleVersine = 0.5 * sinTheta * sinTheta;
|
|
26
|
+
float versine = isSmallAngle ? smallAngleVersine : exactVersine;
|
|
27
|
+
float dHeight = dot(vertexPositionEC, vertexNormal) - eyeToCenter * versine;
|
|
28
|
+
float vertexHeight = czm_eyeHeight + dHeight;
|
|
29
|
+
|
|
30
|
+
// Transform the approximate vertex normal to model coordinates.
|
|
31
|
+
vec3 vertexNormalMC = (czm_inverseModelView * vec4(vertexNormal, 0.0)).xyz;
|
|
32
|
+
vertexNormalMC = normalize(vertexNormalMC);
|
|
33
|
+
|
|
34
|
+
// Compute the exaggeration and apply it along the approximate vertex normal.
|
|
35
|
+
float stretch = u_verticalExaggerationAndRelativeHeight.x;
|
|
36
|
+
float shift = u_verticalExaggerationAndRelativeHeight.y;
|
|
37
|
+
float exaggeration = (vertexHeight - shift) * (stretch - 1.0);
|
|
38
|
+
attributes.positionMC += exaggeration * vertexNormalMC;
|
|
39
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//This file is automatically rebuilt by the Cesium build process.
|
|
2
|
+
export default "void verticalExaggerationStage(\n\
|
|
3
|
+
inout ProcessedAttributes attributes\n\
|
|
4
|
+
) {\n\
|
|
5
|
+
// Compute the distance from the camera to the local center of curvature.\n\
|
|
6
|
+
vec4 vertexPositionENU = czm_modelToEnu * vec4(attributes.positionMC, 1.0);\n\
|
|
7
|
+
vec2 vertexAzimuth = normalize(vertexPositionENU.xy);\n\
|
|
8
|
+
// Curvature = 1 / radius of curvature.\n\
|
|
9
|
+
float azimuthalCurvature = dot(vertexAzimuth * vertexAzimuth, czm_eyeEllipsoidCurvature);\n\
|
|
10
|
+
float eyeToCenter = 1.0 / azimuthalCurvature + czm_eyeHeight;\n\
|
|
11
|
+
\n\
|
|
12
|
+
// Compute the approximate ellipsoid normal at the vertex position.\n\
|
|
13
|
+
// Uses a circular approximation for the Earth curvature along the geodesic.\n\
|
|
14
|
+
vec3 vertexPositionEC = (czm_modelView * vec4(attributes.positionMC, 1.0)).xyz;\n\
|
|
15
|
+
vec3 centerToVertex = eyeToCenter * czm_eyeEllipsoidNormalEC + vertexPositionEC;\n\
|
|
16
|
+
vec3 vertexNormal = normalize(centerToVertex);\n\
|
|
17
|
+
\n\
|
|
18
|
+
// Estimate the (sine of the) angle between the camera direction and the vertex normal\n\
|
|
19
|
+
float verticalDistance = dot(vertexPositionEC, czm_eyeEllipsoidNormalEC);\n\
|
|
20
|
+
float horizontalDistance = length(vertexPositionEC - verticalDistance * czm_eyeEllipsoidNormalEC);\n\
|
|
21
|
+
float sinTheta = horizontalDistance / (eyeToCenter + verticalDistance);\n\
|
|
22
|
+
bool isSmallAngle = clamp(sinTheta, 0.0, 0.05) == sinTheta;\n\
|
|
23
|
+
\n\
|
|
24
|
+
// Approximate the change in height above the ellipsoid, from camera to vertex position.\n\
|
|
25
|
+
float exactVersine = 1.0 - dot(czm_eyeEllipsoidNormalEC, vertexNormal);\n\
|
|
26
|
+
float smallAngleVersine = 0.5 * sinTheta * sinTheta;\n\
|
|
27
|
+
float versine = isSmallAngle ? smallAngleVersine : exactVersine;\n\
|
|
28
|
+
float dHeight = dot(vertexPositionEC, vertexNormal) - eyeToCenter * versine;\n\
|
|
29
|
+
float vertexHeight = czm_eyeHeight + dHeight;\n\
|
|
30
|
+
\n\
|
|
31
|
+
// Transform the approximate vertex normal to model coordinates.\n\
|
|
32
|
+
vec3 vertexNormalMC = (czm_inverseModelView * vec4(vertexNormal, 0.0)).xyz;\n\
|
|
33
|
+
vertexNormalMC = normalize(vertexNormalMC);\n\
|
|
34
|
+
\n\
|
|
35
|
+
// Compute the exaggeration and apply it along the approximate vertex normal.\n\
|
|
36
|
+
float stretch = u_verticalExaggerationAndRelativeHeight.x;\n\
|
|
37
|
+
float shift = u_verticalExaggerationAndRelativeHeight.y;\n\
|
|
38
|
+
float exaggeration = (vertexHeight - shift) * (stretch - 1.0);\n\
|
|
39
|
+
attributes.positionMC += exaggeration * vertexNormalMC;\n\
|
|
40
|
+
}\n\
|
|
41
|
+
";
|
package/index.d.ts
CHANGED
|
@@ -5818,6 +5818,13 @@ export class Ellipsoid {
|
|
|
5818
5818
|
* @returns the intersection point if it's inside the ellipsoid, undefined otherwise
|
|
5819
5819
|
*/
|
|
5820
5820
|
getSurfaceNormalIntersectionWithZAxis(position: Cartesian3, buffer?: number, result?: Cartesian3): Cartesian3 | undefined;
|
|
5821
|
+
/**
|
|
5822
|
+
* Computes the ellipsoid curvatures at a given position on the surface.
|
|
5823
|
+
* @param surfacePosition - The position on the ellipsoid surface where curvatures will be calculated.
|
|
5824
|
+
* @param [result] - The cartesian to which to copy the result, or undefined to create and return a new instance.
|
|
5825
|
+
* @returns The local curvature of the ellipsoid surface at the provided position, in east and north directions.
|
|
5826
|
+
*/
|
|
5827
|
+
getLocalCurvature(surfacePosition: Cartesian3, result?: Cartesian2): Cartesian2;
|
|
5821
5828
|
/**
|
|
5822
5829
|
* Computes an approximation of the surface area of a rectangle on the surface of an ellipsoid using
|
|
5823
5830
|
* Gauss-Legendre 10th order quadrature.
|
|
@@ -29473,9 +29480,9 @@ export class Cesium3DTileset {
|
|
|
29473
29480
|
* console.error(`Error creating tileset: ${error}`);
|
|
29474
29481
|
* }
|
|
29475
29482
|
* @param assetId - The Cesium ion asset id.
|
|
29476
|
-
* @param options - An object describing initialization options
|
|
29483
|
+
* @param [options] - An object describing initialization options
|
|
29477
29484
|
*/
|
|
29478
|
-
static fromIonAssetId(assetId: number, options
|
|
29485
|
+
static fromIonAssetId(assetId: number, options?: Cesium3DTileset.ConstructorOptions): Promise<Cesium3DTileset>;
|
|
29479
29486
|
/**
|
|
29480
29487
|
* Creates a {@link https://github.com/CesiumGS/3d-tiles/tree/main/specification|3D Tiles tileset},
|
|
29481
29488
|
* used for streaming massive heterogeneous 3D geospatial datasets.
|
|
@@ -31301,20 +31308,6 @@ export class Globe {
|
|
|
31301
31308
|
* A brightness shift of -1.0 is complete darkness, which will let space show through.
|
|
31302
31309
|
*/
|
|
31303
31310
|
atmosphereBrightnessShift: number;
|
|
31304
|
-
/**
|
|
31305
|
-
* A scalar used to exaggerate the terrain. Defaults to <code>1.0</code> (no exaggeration).
|
|
31306
|
-
* A value of <code>2.0</code> scales the terrain by 2x.
|
|
31307
|
-
* A value of <code>0.0</code> makes the terrain completely flat.
|
|
31308
|
-
* Note that terrain exaggeration will not modify any other primitive as they are positioned relative to the ellipsoid.
|
|
31309
|
-
*/
|
|
31310
|
-
terrainExaggeration: number;
|
|
31311
|
-
/**
|
|
31312
|
-
* The height from which terrain is exaggerated. Defaults to <code>0.0</code> (scaled relative to ellipsoid surface).
|
|
31313
|
-
* Terrain that is above this height will scale upwards and terrain that is below this height will scale downwards.
|
|
31314
|
-
* Note that terrain exaggeration will not modify any other primitive as they are positioned relative to the ellipsoid.
|
|
31315
|
-
* If {@link Globe#terrainExaggeration} is <code>1.0</code> this value will have no effect.
|
|
31316
|
-
*/
|
|
31317
|
-
terrainExaggerationRelativeHeight: number;
|
|
31318
31311
|
/**
|
|
31319
31312
|
* Whether to show terrain skirts. Terrain skirts are geometry extending downwards from a tile's edges used to hide seams between neighboring tiles.
|
|
31320
31313
|
* Skirts are always hidden when the camera is underground or translucency is enabled.
|
|
@@ -31372,6 +31365,20 @@ export class Globe {
|
|
|
31372
31365
|
* Gets an event that's raised when the terrain provider is changed
|
|
31373
31366
|
*/
|
|
31374
31367
|
readonly terrainProviderChanged: Event;
|
|
31368
|
+
/**
|
|
31369
|
+
* A scalar used to exaggerate the terrain. Defaults to <code>1.0</code> (no exaggeration).
|
|
31370
|
+
* A value of <code>2.0</code> scales the terrain by 2x.
|
|
31371
|
+
* A value of <code>0.0</code> makes the terrain completely flat.
|
|
31372
|
+
* Note that terrain exaggeration will not modify any other primitive as they are positioned relative to the ellipsoid.
|
|
31373
|
+
*/
|
|
31374
|
+
terrainExaggeration: number;
|
|
31375
|
+
/**
|
|
31376
|
+
* The height from which terrain is exaggerated. Defaults to <code>0.0</code> (scaled relative to ellipsoid surface).
|
|
31377
|
+
* Terrain that is above this height will scale upwards and terrain that is below this height will scale downwards.
|
|
31378
|
+
* Note that terrain exaggeration will not modify any other primitive as they are positioned relative to the ellipsoid.
|
|
31379
|
+
* If {@link Globe#terrainExaggeration} is <code>1.0</code> this value will have no effect.
|
|
31380
|
+
*/
|
|
31381
|
+
terrainExaggerationRelativeHeight: number;
|
|
31375
31382
|
/**
|
|
31376
31383
|
* Gets an event that's raised when the length of the tile load queue has changed since the last render frame. When the load queue is empty,
|
|
31377
31384
|
* all terrain and imagery for the current view have been loaded. The event passes the new length of the tile load queue.
|
|
@@ -32937,7 +32944,7 @@ export namespace ImageryLayer {
|
|
|
32937
32944
|
* // Add an OpenStreetMaps layer
|
|
32938
32945
|
* const imageryLayer = new Cesium.ImageryLayer(new Cesium.OpenStreetMapImageryProvider({
|
|
32939
32946
|
* url: "https://tile.openstreetmap.org/"
|
|
32940
|
-
* }))
|
|
32947
|
+
* }));
|
|
32941
32948
|
* scene.imageryLayers.add(imageryLayer);
|
|
32942
32949
|
* @example
|
|
32943
32950
|
* // Add Cesium ion's default world imagery layer
|
|
@@ -32948,11 +32955,11 @@ export namespace ImageryLayer {
|
|
|
32948
32955
|
* const imageryLayer = Cesium.ImageryLayer.fromProviderAsync(Cesium.IonImageryProvider.fromAssetId(3812));
|
|
32949
32956
|
* imageryLayer.alpha = 0.5;
|
|
32950
32957
|
* scene.imageryLayers.add(imageryLayer);
|
|
32951
|
-
* @param imageryProvider - The imagery provider to use.
|
|
32952
|
-
* @param options - An object describing initialization options
|
|
32958
|
+
* @param [imageryProvider] - The imagery provider to use.
|
|
32959
|
+
* @param [options] - An object describing initialization options
|
|
32953
32960
|
*/
|
|
32954
32961
|
export class ImageryLayer {
|
|
32955
|
-
constructor(imageryProvider
|
|
32962
|
+
constructor(imageryProvider?: ImageryProvider, options?: ImageryLayer.ConstructorOptions);
|
|
32956
32963
|
/**
|
|
32957
32964
|
* The alpha blending value of this layer, with 0.0 representing fully transparent and
|
|
32958
32965
|
* 1.0 representing fully opaque.
|
|
@@ -33613,10 +33620,10 @@ export class IonImageryProvider {
|
|
|
33613
33620
|
* const imageryLayer = Cesium.ImageryLayer.fromProviderAsync(Cesium.IonImageryProvider.fromAssetId(3812));
|
|
33614
33621
|
* viewer.imageryLayers.add(imageryLayer);
|
|
33615
33622
|
* @param assetId - An ion imagery asset ID.
|
|
33616
|
-
* @param options - Object describing initialization options.
|
|
33623
|
+
* @param [options] - Object describing initialization options.
|
|
33617
33624
|
* @returns A promise which resolves to the created IonImageryProvider.
|
|
33618
33625
|
*/
|
|
33619
|
-
static fromAssetId(assetId: number, options
|
|
33626
|
+
static fromAssetId(assetId: number, options?: IonImageryProvider.ConstructorOptions): Promise<IonImageryProvider>;
|
|
33620
33627
|
/**
|
|
33621
33628
|
* Gets the credits to be displayed when a given tile is displayed.
|
|
33622
33629
|
* @param x - The tile X coordinate.
|
|
@@ -39255,6 +39262,16 @@ export class Scene {
|
|
|
39255
39262
|
* other hand, increasing this will increase performance but may cause z-fighting among primitives close to the surface.
|
|
39256
39263
|
*/
|
|
39257
39264
|
nearToFarDistance2D: number;
|
|
39265
|
+
/**
|
|
39266
|
+
* The vertical exaggeration of the scene.
|
|
39267
|
+
* When set to 1.0, no exaggeration is applied.
|
|
39268
|
+
*/
|
|
39269
|
+
verticalExaggeration: number;
|
|
39270
|
+
/**
|
|
39271
|
+
* The reference height for vertical exaggeration of the scene.
|
|
39272
|
+
* When set to 0.0, the exaggeration is applied relative to the ellipsoid surface.
|
|
39273
|
+
*/
|
|
39274
|
+
verticalExaggerationRelativeHeight: number;
|
|
39258
39275
|
/**
|
|
39259
39276
|
* This property is for debugging only; it is not for production use.
|
|
39260
39277
|
* <p>
|