MaterialLoader
new MaterialLoader(manager?)THREE equivalent: THREE.MaterialLoader
Loads Material instances from JSON. Supports BasicMaterial, LambertMaterial, and other material types.
Methods
Section titled “Methods”| Method | Description |
|---|---|
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. |