SkyBox

new Cesium.SkyBox(options)

在场景周围画星星的天空盒。天空盒是使用真正的赤道平均分点(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 具有以下属性的对象:
Name Type Default Description
sources Object optional 六个多维数据集映射面的源URL或Image对象。请参阅下面的示例。
show Boolean true optional 确定是否显示此原语。
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

show : Boolean

确定是否显示天空框。
Default Value: true

sources : Object

用于创建立方体贴图面的源:对象 positiveXnegativeXpositiveYnegativeYpositiveZnegativeZ属性。 这些可以是url或Image对象。
Default Value: undefined

Methods



销毁此对象持有的WebGL资源。销毁一个对象允许确定性 释放WebGL资源,而不是依赖垃圾回收器销毁此对象。 一旦一个对象被销毁,就不应该使用它;调用除 isDestroyed将导致DeveloperError异常。因此, 如示例所示,将返回值(undefined)分配给对象。
Throws:
Example:
skyBox = skyBox && skyBox.destroy();
See:

isDestroyed()Boolean



如果此对象已销毁,则返回true;否则返回false。 如果此对象已被销毁,则不应使用它;调用除 isDestroyed将导致DeveloperError异常。
Returns:
如果此对象被销毁,则为true;否则为false
See:
ViewerCesiumWidget将场景渲染到 获取渲染此基本体所需的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 : 这个。来源属性必须都是同一类型。