![](https://i-blog.csdnimg.cn/blog_migrate/e4286753380ebb2400a55c4e69576939.png)
skyBox
至于如何获取天空盒,我在网上上存一份,方便大家使用学习。
阿里云盘:https://www.aliyundrive.com/s/Sp8Fsq8coVx
const viewer = new Cesium.Viewer('cesiumContainer', {
infobox: false,
geocoder: false, //搜索框
homeButton: false, //Home键,
sceneModePicker: false, //控制查看器的显示模式
baseLayerPicker: false, // 是否显示图层选择器
navigationHelpButton: false, //帮助按钮
animation: false, //是否播放动画
timeline: false, //是否显示时间轴
skyBox: new Cesium.SkyBox({
//设置天空盒子
sources: {
positiveX: '/Texture/sky/MilkyWay/dark-s_px.jpg',
negativeX: '/Texture/sky/MilkyWay/dark-s_nx.jpg',
positiveY: '/Texture/sky/MilkyWay/dark-s_py.jpg',
negativeY: '/Texture/sky/MilkyWay/dark-s_ny.jpg',
positiveZ: '/Texture/sky/MilkyWay/dark-s_pz.jpg',
negativeZ: '/Texture/sky/MilkyWay/dark-s_nz.jpg'
}
})
})