From b135971e7f0359fa09c264fb79b33c6109483325 Mon Sep 17 00:00:00 2001 From: fukunee Date: Sat, 19 Sep 2026 16:42:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E4=BE=BF=E7=AD=BE=E6=B8=90?= =?UTF-8?q?=E5=8F=98=E6=B7=A1=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scene/CesiumGlobe.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/scene/CesiumGlobe.js b/src/scene/CesiumGlobe.js index ffd7aaf..f38124a 100644 --- a/src/scene/CesiumGlobe.js +++ b/src/scene/CesiumGlobe.js @@ -344,13 +344,12 @@ export class CesiumGlobe { const win = Cesium.SceneTransforms.worldToWindowCoordinates(scene, m.position); if (!win) { el.style.display = 'none'; continue; } - // 前/后半球:dot(P, C) > |P|²;地平线附近用 frontness 渐变淡出(避免 acos) + // 前/后半球:dot(P, C) > |P|²;背面隐藏(不渐变淡出) const frontness = Cesium.Cartesian3.dot(m.position, camPos) - m.r2; if (frontness <= 0) { el.style.display = 'none'; continue; } - const opacity = Math.min(1, frontness / (m.r2 * 0.02)); el.style.display = 'block'; - el.style.opacity = String(opacity); + el.style.opacity = '1'; el.style.left = `${win.x - m.tipX}px`; el.style.top = `${win.y - m.tipY}px`; }