Exemplo n.º 1
0
 public static void AddPlaneWithUVs(GeneratableMesh meshInfo, Vector3[] verts, Vector2[] uvs, Vector3 rootPos, int pointer, Color32 color)
 {
     meshInfo.AddVerticesWithPos(verts, rootPos);
     meshInfo.AddTriangles(_planeTris, pointer);
     meshInfo.AddUVs(uvs);
     //Ага
     meshInfo.Colors.Add(color);
     meshInfo.Colors.Add(color);
     meshInfo.Colors.Add(color);
     meshInfo.Colors.Add(color);
 }
Exemplo n.º 2
0
 public static void AddPlaneInv(GeneratableMesh meshInfo, Vector3[] verts, TilesetHelper helper, Byte2 tile, Vector3 rootPos, int pointer, Color32 color)
 {
     meshInfo.AddVerticesWithPos(verts, rootPos);
     meshInfo.AddTriangles(_planeTrisInverted, pointer);
     meshInfo.AddPlaneUVs(tile);
     //Ага
     meshInfo.Colors.Add(color);
     meshInfo.Colors.Add(color);
     meshInfo.Colors.Add(color);
     meshInfo.Colors.Add(color);
 }