private void addTri(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, BlockState data) { // UVMap uv = UVMap.getMap("aa_test"); UVMap uv = UVMap.getMap(data.name); // if (data == 2) { // uv = UVMap.getMap("bedrock"); // } // else if (data == 3) { // uv = UVMap.getMap("jungle_planks"); // } tool.AddUv(uv.uvMap[0]); tool.AddVertex(p4); tool.AddUv(uv.uvMap[2]); tool.AddVertex(p3); tool.AddUv(uv.uvMap[3]); tool.AddVertex(p2); tool.AddUv(uv.uvMap[0]); tool.AddVertex(p4); tool.AddUv(uv.uvMap[3]); tool.AddVertex(p2); tool.AddUv(uv.uvMap[1]); tool.AddVertex(p1); }
private void addAlias(string name, string alias) { new UVMap(name, UVMap.getMap(alias).uvMap).register(); }