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

This commit is contained in:
yiqiu
2025-11-21 22:55:14 +08:00
parent 9b2cd0da18
commit e1db515ec5

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.15, 12.0);
// 稍微偏右俯视一点,保持适中距离,球体大小主要通过缩放控制
camera.position.set(0, 0.2, 6.0);
camera.lookAt(0, 0, 0);
var renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
@@ -103,7 +103,8 @@
scene.add(globe);
// 缩小整个地球及其节点/飞线,让球体在较大的展示区域中整体变小
globe.scale.set(0.5, 0.5, 0.5);
// 之前是 0.6 / 0.5,这里进一步缩小到 0.2,避免撑满画布
globe.scale.set(0.2, 0.2, 0.2);
// 按 hollow-globe 风格加载陆地多边形,绘制空心地球轮廓
(function loadLandPolygons() {