Пример #1
0
 public static SmoothingVertsInDebug_t New(SmoothingVertsOutDebug_t smv)
 {
     return(new SmoothingVertsInDebug_t {
         positions = smv.positions,
         colors = smv.colors,
         indices = smv.indices,
         counts = smv.counts,
         vtoiCounts = smv.vtoiCounts
     });
 }
Пример #2
0
 public static GenerateChunkVertsDebug_t New(SmoothingVertsOutDebug_t smoothVerts, VoxelArray1D voxels, NativeArray <PinnedChunkData_t> area, TableStorage tableStorage, NativeArray <int> blockMaterials)
 {
     return(new GenerateChunkVertsDebug_t {
         _smoothVerts = smoothVerts,
         _voxels = voxels,
         _tables = Tables.New(tableStorage),
         _blockMaterials = blockMaterials,
         _area = area,
         _vn = new VoxelNeighbors_t()
     });
 }
Пример #3
0
                public static SmoothingVertsOutDebug_t New()
                {
                    var verts = new SmoothingVertsOutDebug_t {
                        positions  = AllocatePersistentNoInit <Int3_t>(ushort.MaxValue),
                        colors     = AllocatePersistentNoInit <Color32>(ushort.MaxValue * BANK_SIZE),
                        indices    = AllocatePersistentNoInit <int>(ushort.MaxValue),
                        counts     = AllocatePersistentNoInit <int>(1),
                        _vtoi      = AllocatePersistentNoInit <int>(MAX_OUTPUT_VERTICES),
                        vtoiCounts = AllocatePersistentNoInit <int>(MAX_OUTPUT_VERTICES)
                    };

                    return(verts);
                }