This commit is contained in:
Masashi 2025-12-18 22:04:23 +05:30
commit de14cb8f14
4 changed files with 32 additions and 5 deletions

View file

@ -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