关闭光照/大气辉光,地形回到2.0

This commit is contained in:
2026-09-19 17:04:30 +08:00
parent 6256098a94
commit d02e7da220
+3 -3
View File
@@ -203,8 +203,8 @@ export class CesiumGlobe {
scene.skyBox.show = false; scene.skyBox.show = false;
scene.sun.show = false; scene.sun.show = false;
scene.moon.show = false; scene.moon.show = false;
scene.globe.enableLighting = true; // 地形法线明暗 + 水面高光/波纹 scene.globe.enableLighting = false;
scene.globe.showGroundAtmosphere = true; // 地平线大气辉光 scene.globe.showGroundAtmosphere = false;
scene.globe.baseColor = Cesium.Color.fromCssColorString('#d9e6f0'); // 冰盖浅色:影像/地形未覆盖的南北极区域显示为冰盖,而非黑洞 scene.globe.baseColor = Cesium.Color.fromCssColorString('#d9e6f0'); // 冰盖浅色:影像/地形未覆盖的南北极区域显示为冰盖,而非黑洞
// 相机交互:限制滚轮缩放范围,避免过近/过远 // 相机交互:限制滚轮缩放范围,避免过近/过远
@@ -233,7 +233,7 @@ export class CesiumGlobe {
scene.canvas.addEventListener('mousedown', (e) => { if (e.button === 1) e.preventDefault(); }); scene.canvas.addEventListener('mousedown', (e) => { if (e.button === 1) e.preventDefault(); });
// 精细化渲染:高清 + 精细地形 // 精细化渲染:高清 + 精细地形
scene.globe.maximumScreenSpaceError = 1.0; // 更精细的地形起伏 scene.globe.maximumScreenSpaceError = 2.0; // 地形细分
scene.globe.tileCacheSize = 600; // 更大的瓦片缓存,减少细节刷新 scene.globe.tileCacheSize = 600; // 更大的瓦片缓存,减少细节刷新
scene.fxaa = true; // 后处理抗锯齿(MSAA 默认已 4x) scene.fxaa = true; // 后处理抗锯齿(MSAA 默认已 4x)
viewer.useBrowserRecommendedResolution = false; // 按设备像素比渲染,高分屏清晰 viewer.useBrowserRecommendedResolution = false; // 按设备像素比渲染,高分屏清晰