mask(...)
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
mask(val: string): this;
mask(val: Texture): this;
Sets a texture (e.g. Z.ImageTexture or Z.VideoTexture) used to mask the skin.
Default value: null
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
val | string, Z.Texture, or null | The texture to set as the mask. If a string, the mask will be a Z.ImageTexture node with this name if one exists, otherwise; a newly-constructed Z.ImageTexture with this source. If null, the skin will not have any mask applied. |
Returns
Section titled “Returns”this