window.viewer = new Cesium.Viewer("cesiumContainer", {
shadows: true,
infoBox: false,
orderIndependentTranslucency: false,
contextOptions: {
requestWebgl2: true,
msaaLevel: 8, //反走样系数
webgl: {
alpha: true,
depth: true,
stencil: true,
antialias: true,
premultipliedAlpha: true,
preserveDrawingBuffer: true,
failIfMajorPerformanceCaveat: true,
},
},
});
修改 msaaLevel的值,图层没什么变化,拉近看图层边缘的锯齿也没什么变化