在场景周围画星星的天空盒。天空盒是使用真正的赤道平均分点(TEME)轴定义的。
This is only supported in 3D. The sky box is faded out when morphing to 2D or Columbus view. The size of
the sky box must not exceed Scene#maximumCubeMapSize
.
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 具有以下属性的对象:
|
Example:
scene.skyBox = new Cesium.SkyBox({
sources : {
positiveX : 'skybox_px.png',
negativeX : 'skybox_nx.png',
positiveY : 'skybox_py.png',
negativeY : 'skybox_ny.png',
positiveZ : 'skybox_pz.png',
negativeZ : 'skybox_nz.png'
}
});
See:
Members
确定是否显示天空框。
-
Default Value:
true
用于创建立方体贴图面的源:对象
positiveX
,negativeX
,positiveY
,
negativeY
、positiveZ
和negativeZ
属性。
这些可以是url或Image
对象。-
Default Value:
undefined
Methods
销毁此对象持有的WebGL资源。销毁一个对象允许确定性 释放WebGL资源,而不是依赖垃圾回收器销毁此对象。 一旦一个对象被销毁,就不应该使用它;调用除
isDestroyed
将导致DeveloperError
异常。因此,
如示例所示,将返回值(undefined
)分配给对象。Throws:
-
DeveloperError :此对象已销毁,即调用destroy()。
Example:
skyBox = skyBox && skyBox.destroy();
See:
Returns:
如果此对象被销毁,则为
true
;否则为false
。See:
当
Viewer
或CesiumWidget
将场景渲染到
获取渲染此基本体所需的draw命令。
Do not call this function directly. This is documented just to list the exceptions that may be propagated when the scene is rendered:
Throws:
-
DeveloperError : 这个。来源是必需的,并且必须具有positiveX、negativeX、positiveY、negativeY、positizez和negativeZ属性。
-
DeveloperError : 这个。来源属性必须都是同一类型。