Пример #1
0
 /// <summary>
 /// Sets voxel data
 /// </summary>
 /// <param name="voxelData">Voxel data this mesh will contain</param>
 public abstract void SetVoxelData(VoxelMeshData <T> voxelData);
Пример #2
0
 public override void SetVoxelData(VoxelMeshData <TextureVoxel> voxelData)
 {
     _voxelData = new TextureVoxelMeshData(voxelData.UniqueId, voxelData.Name, voxelData.Width, voxelData.Height, voxelData.Depth, voxelData.Voxels);
     name       = voxelData.Name;
     UpdateMesh();
 }
Пример #3
0
 public VoxelMeshTask(VoxelMeshData data)
 {
     _data = data;
 }