下面是更换Cesium SkyBox天空盒的代码:
var viewer = new Cesium.Viewer('cesiumContainer', { skyBox: new Cesium.SkyBox({ sources: { positiveX: 'static/image/skyBox/posx.jpg', negativeX: 'static/image/skyBox/negx.jpg', positiveY: 'static/image/skyBox/negy.jpg', negativeY: 'static/image/skyBox/posy.jpg', positiveZ: 'static/image/skyBox/posz.jpg', negativeZ: 'static/image/skyBox/negz.jpg' } }), });