Merge branch 'Vulkan' into Multi-Render-API
commit
3b8b9ec34d
|
@ -7,6 +7,7 @@ public class Mesh
|
|||
private float[] normals;
|
||||
private int[] indices;
|
||||
private float furthestPoint;
|
||||
public Vertex[] vkVertices;//may not be set only used for vulkan
|
||||
|
||||
public Mesh(float[] vertices, float[] textureCoords, float[] normals, int[] indices,
|
||||
float furthestPoint)
|
||||
|
|
|
@ -74,6 +74,8 @@ public class OBJFileLoader
|
|||
textureCoords[j * 2 + 1] = 1 - vertex.getTextureIndex().y;
|
||||
j++;
|
||||
}
|
||||
return new Mesh(verticies, textureCoords, new float[normals.sizeof()], indicesList, i);
|
||||
Mesh mesh = new Mesh(verticies, textureCoords, new float[normals.sizeof()], indicesList, i);
|
||||
mesh.vkVertices = vertexList;
|
||||
return mesh;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue