Package com.mojang.minecraft.model

Examples of com.mojang.minecraft.model.Vertex


         var7 = var8;
         var8 = var1;
         var1 = var7;
      }

      Vertex var20 = new Vertex(var1, var2, var3, 0.0F, 0.0F);
      Vertex var11 = new Vertex(var8, var2, var3, 0.0F, 8.0F);
      Vertex var12 = new Vertex(var8, var9, var3, 8.0F, 8.0F);
      Vertex var18 = new Vertex(var1, var9, var3, 8.0F, 0.0F);
      Vertex var13 = new Vertex(var1, var2, var10, 0.0F, 0.0F);
      Vertex var15 = new Vertex(var8, var2, var10, 0.0F, 8.0F);
      Vertex var21 = new Vertex(var8, var9, var10, 8.0F, 8.0F);
      Vertex var14 = new Vertex(var1, var9, var10, 8.0F, 0.0F);
      this.vertices[0] = var20;
      this.vertices[1] = var11;
      this.vertices[2] = var12;
      this.vertices[3] = var18;
      this.vertices[4] = var13;
View Full Code Here


         Vec3D var5 = var10000.vertices[1].vector.subtract(var4.vertices[0].vector).normalize();
         Vec3D var6 = var4.vertices[1].vector.subtract(var4.vertices[2].vector).normalize();
         GL11.glNormal3f((var5 = (new Vec3D(var5.y * var6.z - var5.z * var6.y, var5.z * var6.x - var5.x * var6.z, var5.x * var6.y - var5.y * var6.x)).normalize()).x, var5.y, var5.z);

         for(int var7 = 0; var7 < 4; ++var7) {
            Vertex var8;
            GL11.glTexCoord2f((var8 = var4.vertices[var7]).u, var8.v);
            GL11.glVertex3f(var8.vector.x * var3, var8.vector.y * var3, var8.vector.z * var3);
         }
      }

View Full Code Here

    float var15 = -2.0F;

    model.vertices = new Vertex[8];
    model.quads = new TexturedQuad[6];

    Vertex vertex1 = new Vertex(var15, var4, var3, 0.0F, 0.0F);
    Vertex vertex2 = new Vertex(2.0F, var4, var3, 0.0F, 8.0F);
    Vertex vertex3 = new Vertex(2.0F, 2.0F, var3, 8.0F, 8.0F);
    Vertex vertex4 = new Vertex(var15, 2.0F, var3, 8.0F, 0.0F);
    Vertex vertex5 = new Vertex(var15, var4, 2.0F, 0.0F, 0.0F);
    Vertex vertex6 = new Vertex(2.0F, var4, 2.0F, 0.0F, 8.0F);
    Vertex vertex7 = new Vertex(2.0F, 2.0F, 2.0F, 8.0F, 8.0F);
    Vertex vertex8 = new Vertex(var15, 2.0F, 2.0F, 8.0F, 0.0F);

    model.vertices[0] = vertex1;
    model.vertices[1] = vertex2;
    model.vertices[2] = vertex3;
    model.vertices[3] = vertex4;
View Full Code Here

TOP

Related Classes of com.mojang.minecraft.model.Vertex

Copyright © 2018 www.massapicom. 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.