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

This commit is contained in:
yiqiu
2025-11-21 22:50:38 +08:00
parent 64a1ad7ad2
commit 7fbc1eb033
2 changed files with 11 additions and 8 deletions

View File

@@ -28,8 +28,8 @@
var scene = new THREE.Scene();
var camera = new THREE.PerspectiveCamera(40, width / height, 0.1, 1000);
// 稍微偏右俯视一点,进一步拉远让球体看起来更小
camera.position.set(0, 0.3, 8.0);
// 稍微偏右俯视一点,拉远一点,同时后续通过缩放缩小球体本身
camera.position.set(0, 0.25, 5.5);
camera.lookAt(0, 0, 0);
var renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
@@ -102,6 +102,9 @@
scene.add(globe);
// 缩小整个地球及其节点/飞线,让球体在较大的展示区域中整体变小
globe.scale.set(0.6, 0.6, 0.6);
// 按 hollow-globe 风格加载陆地多边形,绘制空心地球轮廓
(function loadLandPolygons() {
if (typeof topojson === "undefined") {