Skip to main content

NiloToon

After reading this page, you will know which NiloToon slot takes which mask and which method makes it.

NiloToon picks the channel with a channel vector

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​

PropertyInspector pathUseHow to make it
_BaseMapStackingLayer1MaskTexBase Map ▸ Stacking Layer 1..10 ▸ Mask TexSets, for each layer (1 to 10), where another color is laid over the base color. Has a channel pickerBridge

For layers 2 to 10, change only the number in the property name (_BaseMapStackingLayer2MaskTex and so on).

Other masks​

PropertyInspector pathUseHow to make it
_EmissionMaskMapEmission ▸ Mask MapWhere the emission glowsPaint
_SmoothnessMapSmoothness ▸ MapSmoothness (gloss) by areaMatCap Gloss
_SpecularMapSpecular ▸ Specular MapWhere specular highlights appearMatCap Gloss
_MatCapAdditiveMaskMapMatCap Additive ▸ Mask MapWhere the matcap gloss is addedMatCap Gloss
_OcclusionMapOcclusion ▸ Occlusion MapHow much the hollow areas are darkened (AO)Plug in a grayscale mask made with Paint or Image. There is no AO-specific method
_OutlineWidthTexOutline ▸ Mask MapOutline width by areaPaint
_SkinMaskMapSkin ▸ Mask MapWhere the skin-only shading appliesPaint

Plugging in the mask​

  1. Output the mask with Save and apply → Mask Output.
  2. Select the texture, turn off sRGB (Color Texture) in the Inspector, and click Apply.
  3. Drag the texture onto the matching slot in the material Inspector.
  4. 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).
  5. Stacking layers have a separate toggle that turns the layer on. Check that it is on.
Bridge can plug the mask in for you

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.