Capítulo 212 de 859
A loader for the VRML format.
const loader = new VRMLLoader();
const object = await loader.loadAsync( 'models/vrml/house.wrl' );
scene.add( object );
Constructor
| Signature |
|---|
new VRMLLoader( manager : LoadingManager ) |
Methods
| Method | Description |
|---|---|
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback ) | Starts loading from the given URL and passes the loaded VRML asset to the onLoad() callback. |
.parse( data : string, path : string ) : Scene | Parses the given VRML data and returns the resulting scene. |