[name]

A Material to define multiple materials for the same geometry. The geometry decides which material is used for which faces by the [page:Face3 faces materialindex]. The material index corresponds with the index of the material in the [page:.materials] array.

Constructor

[name]( [page:Array materials] )

[page:Array materials] -- an array of [page:Material Materials] to be used in the MultiMaterial.

Creates a new [name].

Properties

[property:Boolean isMultiMaterial]

Used to check whether this or derived classes are multi materials. Default is *true*.

You should not change this, as it used internally for optimisation.

[property:Array materials]

An array containing the materials being used by the MultiMaterial.

[property:String uuid]

[link:http://en.wikipedia.org/wiki/Universally_unique_identifier UUID] of this material instance. This gets automatically assigned, so this shouldn't be edited.

[property:Array visible]

Whether or not [page:Mesh meshes] using this material should be rendered.

Methods

[method:MultiMaterial clone]()

Return a clone of this MultiMaterial.

[method:null toJSON]( [page:object meta] )

meta -- object containing metadata such as textures or images for the material.
Convert the material to Three JSON format.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]