Enfin?
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user