i fogot
This commit is contained in:
parent
7fc4e9cd3c
commit
de14cb8f14
4 changed files with 32 additions and 5 deletions
|
|
@ -176,9 +176,9 @@ static float fbm_noise(float x, float y, int octaves) {
|
|||
}
|
||||
|
||||
float get_terrain_height(float x, float z) {
|
||||
float height = fbm_noise(x * 0.03f, z * 0.03f, 4);
|
||||
float height = fbm_noise(x * 0.05f, z * 0.05f, 2);
|
||||
height += fbm_noise(x * 0.01f, z * 0.01f, 2) * 1.5f;
|
||||
return height * 6.0f + 2.0f;
|
||||
return height * 4.0f + 2.0f;
|
||||
}
|
||||
|
||||
#define TERRAIN_SIZE 256
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue