adding multiple texture per bloc support

This commit is contained in:
Kbz-8
2025-05-22 14:14:00 +02:00
parent 0e73c65f8d
commit 0e8e5ee76d
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);
}