22
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2025-11-21 21:41:51 +08:00
parent eff8613a25
commit 55b18e9b6a

View File

@@ -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;