CLASSES
TagsA - Z

MultiMaterial

Material

Description

class MultiMaterial extends Material

Constructor

new MultiMaterial(name, scene)

Create a new MultiMaterial. A tutorial about multi materials can be found here : http://blogs.msdn.com/b/eternalcoding/archive/2013/07/10/babylon-js-using-multi-materials.aspx

Parameters

Name Type Description
name string
scene Scene Scene which contain the MultiMaterial

Members

subMaterials : Material[]

Array of sub materials

Methods

getSubMaterial(index) Material

Get a sub material

Parameters

Name Type Description
index any Index of the submaterial

getClassName() string

isReady(mesh) boolean

Parameters

Name Type Description
optional mesh AbstractMesh The mesh with the multi material

clone(name, cloneChildren) MultiMaterial

Parameters

Name Type Description
name string
optional cloneChildren boolean

serialize() any