地球特效:云、天空盒
Name | Type | Default | Description |
---|---|---|---|
viewer |
Viewer | 视图对象 | |
options.cloudsDuration |
Number |
100000
|
optional 旋转周期时间,单位毫秒。 |
options.cloudsImgSource |
Object |
buildModuleUrl('Assets/Images/clouds.png')
|
optional 云层图片路径。 |
Example:
var GlobeEffect = new Cesium.GlobeEffect(viewer, { cloudsDuration: 10000, cloudsImgSource:buildModuleUrl('Assets/Images/clouds.png')});
GlobeEffect.addGlobeClouds(); //添加云层
GlobeEffect.addDefaultSkyBox('skyBox3'); //添加天空盒
GlobeEffect.removeGlobeClouds(); //移除云层
GlobeEffect.removeSkyBox(); //移除天空盒
Members
云效果旋转周期
云图片路径
Methods
添加天空盒
Returns:
true
添加云效果
Returns:
true
修改场景的天空盒
Name | Type | Description |
---|---|---|
skybox |
SkyBox | 天空盒对象 |
Example:
var skybox = new Cesium.SkyBox({
sources : {
positiveX : 'Assets/Textures/SkyBox2/front.jpg',
negativeX : 'Assets/Textures/SkyBox2/back.jpg',
positiveY : 'Assets/Textures/SkyBox2/left.jpg',
negativeY : 'Assets/Textures/SkyBox2/right.jpg',
positiveZ : 'Assets/Textures/SkyBox2/top.jpg',
negativeZ : 'Assets/Textures/SkyBox2/down.jpg'
}
});
GlobeEffect.changeSkyBox(skybox);
移除云
Returns:
true
移除天空盒
Returns:
true