Set or get the supplied options onto the current global options object
Bundling the entire draco3d
library (instead of loading it on-demand from CDN):
import draco from 'draco3d';
import {setLoaderOptions} from '@loaders.gl/core';
setLoaderOptions({
modules: {
draco3d
}
});
Merges the supplied options into the current global options
options
: See LoaderOptions
.Returns current global options
A loader object, that can contain a mix of options:
parse
function can be specified.Please refer to the corresponding documentation page for for parse
and for each loader for details.