adding multiple texture per bloc support

This commit is contained in:
2025-05-22 14:14:00 +02:00
parent e9708f7e2e
commit 01f2aaacde
4 changed files with 40 additions and 31 deletions

View File

@@ -10,7 +10,7 @@
for(std::uint32_t y = 0; y < std::min(height, CHUNK_SIZE.y); y++)
{
if(y > std::min(height, CHUNK_SIZE.y) - 2)
data[y] = static_cast<std::uint32_t>(BlockType::Dirt);
data[y] = static_cast<std::uint32_t>(BlockType::Grass);
else
data[y] = static_cast<std::uint32_t>(BlockType::Stone);
}