feat: cesium抗锯齿效果
This commit is contained in:
parent
7e9abf6ed3
commit
824f0cd6bc
|
@ -236,6 +236,13 @@ export default {
|
||||||
navigationInstructionsInitiallyVisible:false
|
navigationInstructionsInitiallyVisible:false
|
||||||
});
|
});
|
||||||
this.viewer = viewer;
|
this.viewer = viewer;
|
||||||
|
if(Cesium.FeatureDetection.supportsImageRenderingPixelated()){//判断是否支持图像渲染像素化处理
|
||||||
|
viewer.resolutionScale = window.devicePixelRatio;
|
||||||
|
}
|
||||||
|
//是否开启抗锯齿
|
||||||
|
viewer.scene.fxaa = true;
|
||||||
|
viewer.scene.postProcessStages.fxaa.enabled = true;
|
||||||
|
|
||||||
// 修改homeButton的默认返回位置
|
// 修改homeButton的默认返回位置
|
||||||
// this.viewer.homeButton.viewModel.command.beforeExecute.addEventListener((e) => {
|
// this.viewer.homeButton.viewModel.command.beforeExecute.addEventListener((e) => {
|
||||||
// e.cancel = true;
|
// e.cancel = true;
|
||||||
|
|
Loading…
Reference in New Issue