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); }
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); }