Optional
manager: LoadingManagerReadonly
isStatic
DRACO_'https://cdn.jsdelivr.net/gh/google/[email protected]/javascript/'
Static
LibraryThis is a hack to allow bundling the draco decoder js file with your app source See DRACOLoader2.SetDecoderJsString for example
Transform after load, like convert geometry to mesh, etc. for reference see DRACOLoader2 or PLYLoadPlugin
result of load
Static
SetSet the decoder js string Sample for how to set LibraryValueMap This is useful for bundling the draco decoder js file with your app source
the contents of draco_decoder.js file
First put the draco_decoder.js file in your src folder, then import it in js/ts as a string
import draco_decoder from './libs/draco_decoder.1.5.6.js?raw' // vite will load this as a string
// console.log(draco_decoder) // this should be a string with js content
DRACOLoader2.SetDecoderJsString(draco_decoder)
Path to the draco decoder/encoder libraries, default uses jsdelivr CDN You may want to set this to your own path or use DRACOLoader2.SetDecoderJsString to bundle the draco decoder js file with your app source