// 这里解决锯齿
viewer.scene.fxaa = false;
viewer.scene.postProcessStages.fxaa.enabled = true;
if (Cesium.FeatureDetection.supportsImageRenderingPixelated()) { // 判断是否支持图像渲染像素化处理
viewer.resolutionScale = window.devicePixelRatio;
}
// 这里解决锯齿
viewer.scene.fxaa = false;
viewer.scene.postProcessStages.fxaa.enabled = true;
if (Cesium.FeatureDetection.supportsImageRenderingPixelated()) { // 判断是否支持图像渲染像素化处理
viewer.resolutionScale = window.devicePixelRatio;
}
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。