From e3fd805de2ffe560aa21802e7c2d1cea9eaaee17 Mon Sep 17 00:00:00 2001 From: fukunee Date: Sat, 19 Sep 2026 16:50:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=BB=E8=B4=A8=E8=B0=83=E6=95=B4=EF=BC=9A?= =?UTF-8?q?=E9=AB=98=E5=88=86=E6=B8=B2=E6=9F=93=E3=80=81=E7=B2=BE=E7=BB=86?= =?UTF-8?q?=E5=9C=B0=E5=BD=A2=E3=80=81=E5=BC=80=E5=90=AF=E5=85=89=E7=85=A7?= =?UTF-8?q?/=E5=A4=A7=E6=B0=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scene/CesiumGlobe.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/scene/CesiumGlobe.js b/src/scene/CesiumGlobe.js index bf3911d..c04a9a6 100644 --- a/src/scene/CesiumGlobe.js +++ b/src/scene/CesiumGlobe.js @@ -203,8 +203,8 @@ export class CesiumGlobe { scene.skyBox.show = false; scene.sun.show = false; scene.moon.show = false; - scene.globe.enableLighting = false; - scene.globe.showGroundAtmosphere = false; + scene.globe.enableLighting = true; // 地形法线明暗 + 水面高光/波纹 + scene.globe.showGroundAtmosphere = true; // 地平线大气辉光 scene.globe.baseColor = Cesium.Color.fromCssColorString('#d9e6f0'); // 冰盖浅色:影像/地形未覆盖的南北极区域显示为冰盖,而非黑洞 // 相机交互:限制滚轮缩放范围,避免过近/过远 @@ -231,11 +231,12 @@ export class CesiumGlobe { // 阻止右键弹出浏览器菜单 scene.canvas.addEventListener('contextmenu', (e) => e.preventDefault()); - // 精细化渲染:质量与性能的平衡 - scene.globe.maximumScreenSpaceError = 2.0; // 默认细分,最省性能 + // 精细化渲染:高清 + 精细地形 + scene.globe.maximumScreenSpaceError = 1.0; // 更精细的地形起伏 scene.globe.tileCacheSize = 600; // 更大的瓦片缓存,减少细节刷新 - scene.fxaa = true; // 开启抗锯齿 - viewer.resolutionScale = 1.0; // 关闭超采样(DPR 已提供足够分辨率),省填充率 + scene.fxaa = true; // 后处理抗锯齿(MSAA 默认已 4x) + viewer.useBrowserRecommendedResolution = false; // 按设备像素比渲染,高分屏清晰 + viewer.resolutionScale = 1.0; scene.maximumRenderTimeChange = Infinity; // 配合 requestRenderMode:静止时停止重绘,大幅省电省帧 // 卫星影像