Alpha Mask
The Alpha Mask sets or modifies the material's transparency from a separate grayscale texture, so you can cut out or fade parts of a mesh without editing the alpha channel of the main texture. It is the last box inside Color > Main Color / Alpha.
Alpha Mask only works when the material has transparency. In Opaque rendering mode the box only shows the message If you want to use Alpha Mask, you need to change the "Rendering Mode" to Cutout or Transparent. Switch the rendering mode in Base Setting first. It is not available in NekoToon Lite or Gem.
Alpha Mask#
Alpha Mask#
_AlphaMaskMode None | Replace | Multiply | Add | Subtract · default None
How the mask value is combined with the alpha that comes from the main texture, the Color and the layers:
- None: the mask is off.
- Replace: the mask becomes the alpha; the main texture's alpha is ignored.
- Multiply: alpha × mask. Black areas of the mask cut away, white areas keep the original alpha. This is the usual choice for hiding parts of a mesh.
- Add: alpha + mask. Makes areas more opaque.
- Subtract: alpha − mask. White areas of the mask become transparent.
The result is clamped to 0–1. The mask is applied before the main Dissolve and before Cutoff is tested.
Alpha Mask (texture)#
_AlphaMask texture, red channel · default white
The mask texture. Only the red channel is read, so a plain grayscale image works. It is sampled with the main texture's UV, and the tiling / offset fields below it apply on top of that. Without a texture, the mask value is 1 everywhere, which with Transparency can still be used to set a uniform alpha.
Invert#
_AlphaMaskScale toggle · stores -1 or 1 · default off (1)
Flips the mask so white means transparent and black means opaque. Handy when you already have a mask painted the "wrong way round".
Transparency#
_AlphaMaskValue -1 – 1 · default 0
Shifts the mask value up or down before it is used. Positive values make the whole mask brighter (more opaque in Multiply / Replace), negative values darker. At -1 the mask is fully black, at 1 fully white. It is a quick way to fade the masked area without editing the texture, and a convenient value to animate.
Cutoff#
_Cutoff -0.001 – 1.001 · default 0.5
The alpha threshold. In Cutout mode, pixels with alpha below this value are discarded and the rest are fully opaque (the edge is smoothed over about one pixel). In Transparent mode, pixels below it are also discarded, so it removes faint leftovers (switching the rendering mode sets it to 0.5 for Cutout and 0.001 for Transparent). This is the same Cutoff as in Base Setting; it is repeated here for convenience.
Show advanced editor: Scale / Offset#
_AlphaMaskScale float · default 1 _AlphaMaskValue float · default 0
Ticking Show advanced editor shows the raw values behind Invert and Transparency. The shader computes mask = clamp(texture × Scale + Offset, 0, 1). Invert sets Scale to -1 and adds 1 to Offset; Transparency is Offset (minus that 1 when inverted). Use these directly for things the simple controls cannot do, such as a Scale of 2 to increase the mask's contrast.
Bake Alphamask#
button · needs a main texture
Writes the result of the alpha mask into the alpha channel of a new copy of the main texture, assigns it, and then sets the mode back to None, clears the mask texture and resets Transparency. The look stays the same but one texture sample is saved.
A common use on VRChat avatars is hiding body parts under clothing: set the rendering mode to Cutout, the Alpha Mask mode to Multiply, and paint black over the areas that should disappear. Cutout keeps the draw order simple and avoids sorting problems that Transparent can have.
Hiding geometry with an alpha mask does not reduce polygons or remove the mesh from rendering; it still costs the same to draw. If the parts are never visible, deleting them from the mesh is cheaper.