materials(...)
materials(val: (string | Texture | Material)[]): this;
Set all of the materials for this object.
Parameters
Parameter | Type | Description |
---|---|---|
val | array of strings, Z.Textures, or Z.Materials | The materials to set. If any element of val is a string then a Z.ImageTexture is allocated in its place. |
Returns
this