NiloToon
After reading this page, you will know which NiloToon slot takes which mask and which method makes it.
Next to each mask slot is a vector such as (1,0,0,0). The shader takes the dot product of that vector with the pixel to pick the channel. Any channel can be used. The expert tool Combiner sets this vector when it packs.
→ Channels and packing
Stacking layer masks
| Property | Inspector path | Use | How to make it |
|---|---|---|---|
_BaseMapStackingLayer1MaskTex | Base Map ▸ Stacking Layer 1..10 ▸ Mask Tex | Sets, for each layer (1 to 10), where another color is laid over the base color. Has a channel picker | Bridge |
For layers 2 to 10, change only the number in the property name (_BaseMapStackingLayer2MaskTex and so on).
Other masks
| Property | Inspector path | Use | How to make it |
|---|---|---|---|
_EmissionMaskMap | Emission ▸ Mask Map | Where the emission glows | Paint |
_SmoothnessMap | Smoothness ▸ Map | Smoothness (gloss) by area | MatCap Gloss |
_SpecularMap | Specular ▸ Specular Map | Where specular highlights appear | MatCap Gloss |
_MatCapAdditiveMaskMap | MatCap Additive ▸ Mask Map | Where the matcap gloss is added | MatCap Gloss |
_OcclusionMap | Occlusion ▸ Occlusion Map | How much the hollow areas are darkened (AO) | Plug in a grayscale mask made with Paint or Image. There is no AO-specific method |
_OutlineWidthTex | Outline ▸ Mask Map | Outline width by area | Paint |
_SkinMaskMap | Skin ▸ Mask Map | Where the skin-only shading applies | Paint |
Plugging in the mask
- Output the mask with Save and apply → Mask Output.
- Select the texture, turn off sRGB (Color Texture) in the Inspector, and click Apply.
- Drag the texture onto the matching slot in the material Inspector.
- Set the channel vector of the slot to the channel that really holds the mask data. If you did not pack with the Combiner, that is usually R
(1,0,0,0). - Stacking layers have a separate toggle that turns the layer on. Check that it is on.
Turn on Auto-assign after bake in Bridge and the saved mask is connected to a slot on the material that can take it automatically. It works only with NiloToon, lilToon, and Poiyomi materials. It is off by default, and you can undo it. On NiloToon the target is an empty stacking layer.
If the effect does not show, see Troubleshooting.