feat: cesium抗锯齿效果

This commit is contained in:
caoqianming 2024-04-03 10:33:28 +08:00
parent 7e9abf6ed3
commit 824f0cd6bc
1 changed files with 7 additions and 0 deletions

View File

@ -236,6 +236,13 @@ export default {
navigationInstructionsInitiallyVisible:false
});
this.viewer = viewer;
if(Cesium.FeatureDetection.supportsImageRenderingPixelated()){//
viewer.resolutionScale = window.devicePixelRatio;
}
//齿
viewer.scene.fxaa = true;
viewer.scene.postProcessStages.fxaa.enabled = true;
// homeButton
// this.viewer.homeButton.viewModel.command.beforeExecute.addEventListener((e) => {
// e.cancel = true;