Skip to content

Instantly share code, notes, and snippets.

@jearle
Created October 11, 2012 19:42
Show Gist options
  • Select an option

  • Save jearle/3875006 to your computer and use it in GitHub Desktop.

Select an option

Save jearle/3875006 to your computer and use it in GitHub Desktop.
fetchJson(path, function(jsonData) {
var images = jsonData.images;
fetchMesh(jsonData.meshPaths, function(meshes){
for(var i = 0 ; i < meshes.length - 1 ; i++){
meshes[i].applyMesh(function(mesh){
obj.mesh = mesh;
});
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment