This commit is contained in:
17
js/globe.js
17
js/globe.js
@@ -107,6 +107,23 @@
|
|||||||
|
|
||||||
scene.add(globe);
|
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 starGeometry = new THREE.BufferGeometry();
|
||||||
var starCount = 600;
|
var starCount = 600;
|
||||||
|
|||||||
Reference in New Issue
Block a user