예제 #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);
 }
예제 #2
0
 static void AddPlaneUVs(this GeneratableMesh meshInfo, Byte2 tilePos)
 {
     meshInfo.AddUVs(GetCachedUVsForTile(tilePos));
 }