new Globe(ellipsoid)
The globe rendered in the scene, including its terrain (
Globe#terrainProvider
)
and imagery layers (Globe#imageryLayers
). Access the globe using Scene#globe
.
Name | Type | Default | Description |
---|---|---|---|
ellipsoid |
Ellipsoid |
Ellipsoid.WGS84
|
optional Determines the size and shape of the globe. |
Source:
Scene/Globe.js, line 106
Members
-
depthTestAgainstTerrain :Boolean
-
True if primitives such as billboards, polylines, labels, etc. should be depth-tested against the terrain surface, or false if such primitives should always be drawn on top of terrain unless they're on the opposite side of the globe. The disadvantage of depth testing primitives against terrain is that slight numerical noise or terrain level-of-detail switched can sometimes make a primitive that should be on the surface disappear underneath it.
-
Default Value:
false
Source: Scene/Globe.js, line 202 -
ellipsoid :Ellipsoid
-
Gets an ellipsoid describing the shape of this globe.Source: Scene/Globe.js, line 279
-
enableLighting :Boolean
-
Enable lighting the globe with the sun as a light source.
-
Default Value:
false
Source: Scene/Globe.js, line 230 -
imageryLayers :ImageryLayerCollection
-
Gets the collection of image layers that will be rendered on this globe.Source: Scene/Globe.js, line 290
-
lightingFadeInDistance :Number
-
The distance where lighting resumes. This only takes effect when
enableLighting
istrue
.-
Default Value:
9000000.0
Source: Scene/Globe.js, line 249 -
lightingFadeOutDistance :Number
-
The distance where everything becomes lit. This only takes effect when
enableLighting
istrue
.-
Default Value:
6500000.0
Source: Scene/Globe.js, line 240 -
maximumScreenSpaceError :Number
-
The maximum screen-space error used to drive level-of-detail refinement. Higher values will provide better performance but lower visual quality.
-
Default Value:
2
Source: Scene/Globe.js, line 211 -
northPoleColor :Cartesian3
-
Determines the color of the north pole. If the day tile provider imagery does not extend over the north pole, it will be filled with this color before applying lighting.
-
Default Value:
Cartesian3(2.0 / 255.0, 6.0 / 255.0, 18.0 / 255.0)
Source: Scene/Globe.js, line 161 -
oceanNormalMapUrl :String
-
The normal map to use for rendering waves in the ocean. Setting this property will only have an effect if the configured terrain provider includes a water mask.
-
Default Value:
buildModuleUrl('Assets/Textures/waterNormalsSmall.jpg')
Source: Scene/Globe.js, line 190 -
show :Boolean
-
Determines if the globe will be shown.
-
Default Value:
true
Source: Scene/Globe.js, line 178 -
southPoleColor :Cartesian3
-
Determines the color of the south pole. If the day tile provider imagery does not extend over the south pole, it will be filled with this color before applying lighting.
-
Default Value:
Cartesian3(1.0, 1.0, 1.0)
Source: Scene/Globe.js, line 170 -
terrainProvider :TerrainProvider
-
The terrain provider providing surface geometry for this globe.Source: Scene/Globe.js, line 115
-
tileCacheSize :Number
-
The size of the terrain tile cache, expressed as a number of tiles. Any additional tiles beyond this number will be freed, as long as they aren't needed for rendering this frame. A larger number will consume more memory but will show detail faster when, for example, zooming out and then back in.
-
Default Value:
100
Source: Scene/Globe.js, line 222
Methods
-
destroy() → undefined
-
Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.
Once an object is destroyed, it should not be used; calling any function other thanisDestroyed
will result in aDeveloperError
exception. Therefore, assign the return value (undefined
) to the object as done in the example.Returns:
Throws:
-
DeveloperError : This object was destroyed, i.e., destroy() was called.
Example:
globe = globe && globe.destroy();
See:
Source: Scene/Globe.js, line 840 -
-
isDestroyed() → Boolean
-
Returns true if this object was destroyed; otherwise, false.
If this object was destroyed, it should not be used; calling any function other thanisDestroyed
will result in aDeveloperError
exception.Returns:
True if this object was destroyed; otherwise, false.See:
Source: Scene/Globe.js, line 817