MaterialLoader Class

Module: Loaders

MaterialLoader can be used to load external materials.

Item Index

Methods

load

(
  • url
  • onLoad
  • onProgress
  • onError
)

Load material file from URL.

Parameters:

  • url String
  • onLoad Function
  • onProgress Function
  • onError Function

parse

(
  • json
)
Material

Parse material JSON.

Parameters:

  • json Object

Returns:

Material:

material

setTextures

(
  • value
)

Set texture array to be used when loading materials

Parameters:

  • value Array