loaders.gl
loaders.gl copied to clipboard
CDN: false ?
The docs mention that options.cdn disables loading from a CDN, but this does seem to do nothing in practice.
We've had to manually change this in draco-worker.js:
old: te = `te = `https://www.gstatic.com/draco/versioned/decoders/${ct}`, // CDN`, // CDN
new: te = self.location.href.replace('/draco-worker-custom.js', '') // load from origin in the folder where this file is located
Additional information: Our pipeline is: GLTFLoader > DracoLoader > draco.