Package cofh.repack.codechicken.lib.render.uv

Examples of cofh.repack.codechicken.lib.render.uv.UV.multiply()


    for (int k = 0; k < verts.length; k += vp) {
      UV uv = new UV();
      for (int i = 0; i < vp; i++) {
        uv.add(verts[k + i].uv);
      }
      uv.multiply(1D / vp);
      for (int i = 0; i < vp; i++) {
        Vertex5 vert = verts[k + i];
        vert.uv.u += vert.uv.u < uv.u ? d : -d;
        vert.uv.v += vert.uv.v < uv.v ? d : -d;
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.