|
Description
The Material class lets you manipulate material. A material controls everything about how a surface of a model should be rendered. This includes any texture maps, environment maps or colors and the method by which they should be combined.
Method summary for the Material class
Constructor for the Material class Usage new Material(); Returns A reference to a Material object Description
A material is only useful after being assigned to a surface of a model using the Model.setMaterial() method.
Example The following creates a material and sets it to be used by the surface 'powerNewTriSet000' of the model 'bigPhone':
var mat1 = new Material();
bigPhone.setMaterial("powerNewTriSet000", mat1); |