沙漠模拟

This commit is contained in:
nicomacbookpro
2025-08-21 11:22:56 +08:00
parent b9da071c59
commit 98900d0ac0

View File

@@ -64,7 +64,7 @@ const createDesertTerrain = () => {
let n = perlin.noise(v2.x, v2.y, 0.314)
n = Math.abs(n)
n = Math.pow(n, 3)
position.setY(i, Math.min(n * 35, 10))
position.setY(i, Math.min(n * 35, 1))
}
plane.computeVertexNormals()