System.err.println("Error: '" + ext + "' file format not supported for mesh data.");
new Exception().printStackTrace();
System.exit(1);
}
OBJModel test = new OBJModel("./res/models/" + fileName);
IndexedModel model = test.ToIndexedModel();
ArrayList<Vertex> vertices = new ArrayList<Vertex>();
for(int i = 0; i < model.GetPositions().size(); i++)
{