Ejemplo n.º 1
0
                public static FinalMeshVertsDebug_t New()
                {
                    var verts = new FinalMeshVertsDebug_t {
                        positions   = AllocatePersistentNoInit <Vector3>(ushort.MaxValue),
                        colors      = AllocatePersistentNoInit <Color32>(ushort.MaxValue),
                        indices     = AllocatePersistentNoInit <int>(ushort.MaxValue),
                        counts      = AllocatePersistentNoInit <int>(2),
                        _vtoi       = AllocatePersistentNoInit <int>(MAX_OUTPUT_VERTICES * BANK_SIZE),
                        _vtoiCounts = AllocatePersistentNoInit <int>(MAX_OUTPUT_VERTICES)
                    };

                    return(verts);
                }
Ejemplo n.º 2
0
 public unsafe static GenerateFinalVerticesDebug_t New(SmoothingVertsInDebug_t inVerts, FinalMeshVertsDebug_t outVerts)
 {
     return(new GenerateFinalVerticesDebug_t {
         _smoothVerts = inVerts,
         _finalVerts = outVerts
     });
 }