沙漠模拟
This commit is contained in:
@@ -64,7 +64,7 @@ const createDesertTerrain = () => {
|
|||||||
let n = perlin.noise(v2.x, v2.y, 0.314)
|
let n = perlin.noise(v2.x, v2.y, 0.314)
|
||||||
n = Math.abs(n)
|
n = Math.abs(n)
|
||||||
n = Math.pow(n, 3)
|
n = Math.pow(n, 3)
|
||||||
position.setY(i, Math.min(n * 35, 10))
|
position.setY(i, Math.min(n * 35, 1))
|
||||||
}
|
}
|
||||||
|
|
||||||
plane.computeVertexNormals()
|
plane.computeVertexNormals()
|
||||||
|
|||||||
Reference in New Issue
Block a user