Capítulo 211 de 859
A loader for the VOX format.
const loader = new VOXLoader();
const result = await loader.loadAsync( 'models/vox/monu10.vox' );
scene.add( result.scene.children[ 0 ] );
Constructor
| Signature |
|---|
new VOXLoader() |
Methods
| Method | Description |
|---|---|
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback ) | Starts loading from the given URL and passes the loaded VOX asset to the onLoad() callback. |
.parse( buffer : ArrayBuffer ) : Object | Parses the given VOX data and returns the result object. |