Example:
//使用内置天空盒
viewer.scene.skyBox = new Cesium.GeoSkyBox({
viewer: viewer,
groundType: "Sunny",
distantType: "MilkyWay",
height: 10000
});
//使用自定义天空盒
viewer.scene.skyBox = new Cesium.GeoSkyBox({
viewer: viewer,
groundBoxImages: [
"/Assets/Images/skyBox/Right.jpg",
"/Assets/Images/skyBox/Left.jpg",
"/Assets/Images/skyBox/Front.jpg",
"/Assets/Images/skyBox/Back.jpg",
"/Assets/Images/skyBox/Up.jpg",
"/Assets/Images/skyBox/Down.jpg",
],
distantBoxImages: [
"/Assets/Images/skyBox/tycho2t3_80_px2.jpg",
"/Assets/Images/skyBox/tycho2t3_80_mx2.jpg",
"/Assets/Images/skyBox/tycho2t3_80_py2.jpg",
"/Assets/Images/skyBox/tycho2t3_80_my2.jpg",
"/Assets/Images/skyBox/tycho2t3_80_pz2.jpg",
"/Assets/Images/skyBox/tycho2t3_80_mz2.jpg",
]
});
Demo: