MaterialLoader

new MaterialLoader(manager?)
THREE: THREE.MaterialLoader

Loads Material instances from JSON. Supports BasicMaterial, LambertMaterial, and other material types.

Methods

MethodDescription
load(url: string, onLoad?: Function, onProgress?: Function, onError?: Function): void

Fetches JSON and passes the parsed material to onLoad.

parse(json: object): Material

Creates a material instance from a JSON descriptor.