private void GenerateVoxelData(VoxelDataItem[,,] voxels, Vector3 chunkPos) { for (int x = 0; x < ChunkSize + 1; x++) { for (int y = 0; y < ChunkSize + 1; y++) { for (int z = 0; z < ChunkSize + 1; z++) { voxels[x, y, z] = Biome.GetDensity(x + (int)chunkPos.x, y + (int)chunkPos.y, z + (int)chunkPos.z); } } } }