NodeObjectLoader.html.md 1.9 KB

Inheritance: Loader → ObjectLoader →

NodeObjectLoader

A special type of object loader for loading 3D objects using node materials.

Constructor

new NodeObjectLoader( manager : LoadingManager )

Constructs a new node object loader.

manager

A reference to a loading manager.

Properties

.nodeMaterials : Object.

Represents a dictionary of node material types.

.nodes : Object.

Represents a dictionary of node types.

Methods

.parse( json : Object, onLoad : function ) : Object3D

Parses the node objects from the given JSON.

json

The JSON definition

onLoad

The onLoad callback function.

Overrides: ObjectLoader#parse

Returns: . The parsed 3D object.

.parseMaterials( json : Object, textures : Object. ) : Object.

Parses the node objects from the given JSON and textures.

json

The JSON definition

textures

The texture library.

Returns: . The parsed materials.

.parseNodes( json : Array.

粤ICP备19079148号