Skip to main content

Bangs Stencil Settings

In 3+1, the stencil buffer is used to allow eyebrows and eyeliner to show through even when the bangs overlap the face. When adding new bangs, you must apply the same settings to the material. Without this, eyebrows and eyeliner will be hidden behind the bangs.

For details on how this works, see Shader Settings › Stencil System.


Setup Steps

1. Select the bangs material

Select the bangs object from the Project window or Hierarchy and open the material it uses in the Inspector.

2. Open the lilToon stencil settings

In the lilToon material Inspector, expand the "Stencil" section.

If the section is not visible, switch the display mode at the top of the Inspector to "Intermediate" or higher.

3. Set the values

FieldValue
Stencil Ref1
Stencil CompNotEqual
Stencil PassKeep
Stencil FailKeep
Stencil ZFailKeep
Pass / Fail / ZFail can remain at the default Keep. Only Ref and Comp need to be changed.

4. If there are multiple materials

If multiple materials are assigned to the bangs object, apply the same settings to all materials.

5. Verify in Play mode

Enter Unity's Play mode and confirm that eyebrows and eyeliner are visible through the bangs.


Matching lilToon Settings

The Brightness (Brightness parameter) and Monochrome Lighting (Lighting(mono) parameter) in the preference menu work by having the COS_A animator directly control each material's _LightMinLimit / _MonochromeLighting.

Materials on newly added meshes are outside the scope of this animator, so aligning the default values with the base avatar ensures visual consistency when the radial is not in use.

For details, see Shader Settings.

PropertyMin (Radial 0)Max (Radial 1)
_LightMinLimit0.051.0
_MonochromeLighting0.51.0
If you want new parts to follow brightness or monochrome changes from the radial, you need to add the new mesh's material slots to COS_A's animation clips.

Checklist

  • Stencil Ref on the bangs material is set to 1
  • Stencil Comp on the bangs material is set to NotEqual
  • If there are multiple materials, all of them have been configured
  • Eyebrows and eyeliner are visible through the bangs in Play mode
  • lilToon lighting values match the base avatar