From 55b18e9b6ae73cae4b36c103a5a2bc0cd323eed4 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Fri, 21 Nov 2025 21:41:51 +0800 Subject: [PATCH] 22 --- js/globe.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/js/globe.js b/js/globe.js index 4d58295..706a2c9 100644 --- a/js/globe.js +++ b/js/globe.js @@ -107,6 +107,23 @@ scene.add(globe); + // 放大地球整体,让主体更突出 + globe.scale.set(1.3, 1.3, 1.3); + + // 调整地球材质,使底色稍微亮一点,避免在浅色背景下看不清 + try { + var globeMat = globe.globeMaterial && globe.globeMaterial(); + if (globeMat) { + globeMat.color = new THREE.Color("#133b74"); + globeMat.emissive = new THREE.Color("#020b18"); + globeMat.specular = new THREE.Color("#3aaefc"); + globeMat.shininess = 45; + globeMat.needsUpdate = true; + } + } catch (e) { + console.warn("[Globe] failed to tweak globe material:", e); + } + // 星辰背景(简单加一点点空间感) var starGeometry = new THREE.BufferGeometry(); var starCount = 600;