Nerfed mountains, added beaches, placeholder for water & snow

This commit is contained in:
Namonay
2025-05-30 21:34:47 +02:00
parent d58fbe0bb7
commit f53154a70a
2 changed files with 9 additions and 2 deletions

View File

@@ -184,7 +184,14 @@ const int Noise::ApplyPerlin2DParameters(float x, float y) noexcept // Wrapper t
{
// const std::uint32_t value = Perlin3D(pos.x, y, pos.y);
if(y > std::min(height, CHUNK_SIZE.y) - 2)
data[y] = static_cast<std::uint32_t>(BlockType::Grass);
{
if (height <= 23)
data[y] = static_cast<std::uint32_t>(BlockType::Sand);
else if (height < 140)
data[y] = static_cast<std::uint32_t>(BlockType::Grass);
else
data[y] = static_cast<std::uint32_t>(BlockType::Stone);
}
else
data[y] = static_cast<std::uint32_t>(BlockType::Stone);
}