skin(...)
skin(val: string): this;
skin(val: Texture): this;
skin(val: Material): this;
Sets the material in slot zero for this object.
Parameters
Parameter | Type | Description |
---|---|---|
val | string, Z.Texture, or Z.Material | The material to set in slot zero. If val is a string then a Z.ImageTexture is allocated and set. |
Returns
this