This commit is contained in:
MarcEricMartel
2021-12-06 11:53:18 -05:00
parent 16674eb07d
commit e251734b0f
1195 changed files with 98 additions and 14 deletions

View File

@@ -109,11 +109,6 @@ void Chunk::AddBlockToMesh(VertexBuffer::VertexData* vd, int& count, BlockType b
int cx = x + (m_posX - cex) * CHUNK_SIZE_X, cy = z + (m_posY - cey) * CHUNK_SIZE_Z;
if (perlin.Get(x, y, z) + .1f > 1.5f) {
}
if (y == CHUNK_SIZE_Y - 1 || GetBlock(x, y + 1, z) == BTYPE_AIR) { // y
vd[count++] = VertexBuffer::VertexData(x, y + 1.f, z, .8f, .8f, .8f, u, v);
vd[count++] = VertexBuffer::VertexData(x, y + 1.f, z + 1.f, .8f, .8f, .8f, u, v + s);