Capítulo 192 de 859
A special type of object loader for loading 3D objects using node materials.
Constructor
| Signature |
|---|
new NodeObjectLoader( manager : LoadingManager ) |
Properties
| Property | Description |
|---|---|
.nodeMaterials : Object.<string, NodeMaterial.constructor> | Represents a dictionary of node material types. |
.nodes : Object.<string, Node.constructor> | Represents a dictionary of node types. |
Methods
| Method | Description |
|---|---|
.parse( json : Object, onLoad : function ) : Object3D | Parses the node objects from the given JSON. |
.parseAsync( json : Object ) : Promise.<Object3D> (async) | Async version of NodeObjectLoader#parse. |
.parseMaterials( json : Object, textures : Object.<string, Texture> ) : Object.<string, NodeMaterial> | Parses the node objects from the given JSON and textures. |
.parseNodes( json : Array.<Object>, textures : Object.<string, Texture> ) : Object.<string, Node> | Parses the node objects from the given JSON and textures. |
.setNodeMaterials( value : Object.<string, NodeMaterial.constructor> ) : NodeObjectLoader | Defines the dictionary of node material types. |
.setNodes( value : Object.<string, Node.constructor> ) : NodeObjectLoader | Defines the dictionary of node types. |