扩大陆地面积

This commit is contained in:
2026-03-26 10:17:20 +08:00
parent d751437fca
commit dc417a1f1a
2 changed files with 57 additions and 10 deletions

View File

@@ -280,11 +280,20 @@ export class OceanScene {
async initTerrain() {
const terrainGen = new TerrainGenerator({
size: 1200,
segments: 200,
maxHeight: 30,
waterLevel: 0,
seed: 42
size: 1200, // 地形平面尺寸
segments: 200, // 网格细分数,越高细节越多
maxHeight: 34, // 海面以上地形的最大起伏高度
waterLevel: 0, // 海平面基准高度
underwaterDepthBias: 4.5, // 整体压低海面以下地形,避免浅滩露出
landBias: 0.2, // 整体抬升陆地倾向,增大陆地露出面积
falloffStartRatio: 0.22, // 从中心向外开始下沉的起始比例
maxLandRatio: 0.46, // 大陆海岸线的大致外缘比例
edgeDepth: 12, // 海岸外侧向海底下沉的强度
coreRadiusRatio: 0.24, // 大陆核心高地区域半径比例
continentLift: 0.55, // 核心大陆的额外抬升强度
coastVariance: 0.05, // 海岸线形状起伏幅度,越大越不规则
outerShelfDepth: 4, // 大陆外侧陆架的额外下沉深度
seed: 42 // 固定随机种子,保证地形稳定复现
});
this.terrain = terrainGen.generate();