Https://preview.babylonjs.com/meshopt_decoder.js How to localize this file ?

https://preview.babylonjs.com/meshopt_decoder.js How to localize this file ?

Hey @ShareQiu1994 , how are you doing?

What do you mean by localize this particular file? As far as I understand this file has WASM code, what are you trying to achieve exactly?

1 Like

I mean https://preview.babylonjs.com/meshopt_decoder.js This file is used offline …

Maybe I found a way, Like this

BABYLON.MeshoptCompression.Configuration = {
  decoder: {
    url: './babylon/meshopt_decoder.js'
  }
}
2 Likes

Yes, the documentation is here for future reference:
MeshoptCompression | Babylon.js Documentation (babylonjs.com)