下面是更换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' } }), });
部分素材资源来源网站,本站提供免费下载,如有侵权请联系站长马上删除!