public VoxelChunk(VoxelVolume volume, Coords coords) { Volume = volume; Coords = coords; Index = Volume.Index; VoxelData = new UnmanagedArray3 <VoxelData>(); Voxels = new IndexedVoxels(this); LightData = new VoxelChunkLightData(); }
public IndexedVoxels(VoxelChunk chunk) { _data = chunk.VoxelData; _index = chunk.Index; }