material(... , ...)
material(indx: number, val: string): this;
material(indx: number, val: Texture): this;
material(indx: number, val: Material): this;
Sets a material to the specified slot.
Parameters
Parameter | Type | Description |
---|---|---|
indx | integer | Which material slot to set. |
val | string, Z.Texture, or Z.Material | The material to set in the specified slot. If val is a string then a Z.ImageTexture is allocated and set. |
Returns
this