const viewer = new Cesium.Viewer("cesiumContainer", { orderIndependentTranslucency: false, contextOptions: { webgl: { alpha: true, }, }, }); viewer.scene.skyBox.destroy(); viewer.scene.skyBox = undefined; viewer.scene.sun.destroy(); viewer.scene.sun = undefined; viewer.scene.moon.destroy(); viewer.scene.moon = undefined; viewer.scene.skyAtmosphere.destroy(); viewer.scene.skyAtmosphere = undefined; viewer.scene.backgroundColor = new Cesium.Color(0, 0, 0, 0); viewer.scene.globe.baseColor = new Cesium.Color(0, 0, 0, 0);
标签:透明,undefined,viewer,背景,scene,Cesium,new,cesium,destroy From: https://www.cnblogs.com/dullfish/p/17091598.html