Snippets Collections
var glTFloader  = new GLTFLoader();
var dracoLoader = new DRACOLoader();

dracoLoader.setDecoderPath( '/examples/js/libs/draco' );
glTFloader.setDRACOLoader( dracoLoader );

// Load model
glTFloader.load('link/to/yourModel', function(gltf) {

  // load model here...

});
star

Mon Nov 15 2021 21:54:00 GMT+0000 (UTC)

#javascript #gltf

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension