List of usage examples for javax.media.j3d QuadArray setTextureCoordinates
public void setTextureCoordinates(int index, float texCoords[])
From source file:Drag.java
public Cube(Appearance appearance) { QuadArray quadArray = new QuadArray(24, QuadArray.COORDINATES | QuadArray.NORMALS | QuadArray.TEXTURE_COORDINATE_2); quadArray.setCoordinates(0, verts);// w w w . ja va 2 s . co m quadArray.setNormals(0, normals); quadArray.setTextureCoordinates(0, textCoords); shape3D = new Shape3D(quadArray, appearance); }