mirror of
https://github.com/Kbz-8/42_vox.git
synced 2026-03-03 20:46:37 +00:00
adding multiple texture per bloc support
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user