Overview
A Hair layer applies to tracked hair. It has three modes: Colour (tint the hair), Disappear (paint the hair out), and Shader (shade the hair region with your own GLSL). Studio tracks the hair each frame and applies the chosen mode.
Product: Nosmai Studio · Platform: macOS, Windows · Updated: 6 October 2026 · Reading time: 6 minutes
Prerequisites
- A project open in the editor.
- A person with visible hair in the preview.
Add a hair layer
- In the Layers panel, press +, then choose Hair under On a face or hand.
- Select the layer to open its inspector.
Choose a mode
The three modes are mutually exclusive:
- Colour: a flat tint with an RGBA colour and an intensity. Use it for hair colour try-on.
- Disappear: paint the hair out, filling from a neighbour, the background, or a flat colour. Use it for a bald or receding look.
- Shader: run an author-written fragment shader over the hair region. Use it for a stylised or animated hair effect. See Add a script or shader.
The inspector keeps the hair block, its flag, and any generated pass in sync.
Verify it worked
- The hair changes colour, disappears, or takes your shader in the preview.
- The effect follows the hair as the head moves.
- Switching mode changes the effect live.
Common problems
| What you see | Why | Fix |
|---|---|---|
| The colour bleeds past the hair | Hair tracking is approximate at the edges | Lower the intensity, or use a colour close to the natural hair |
| Hair effects do not appear | No hair is visible, or the layer is off | Show hair to the camera and check the layer is on |
| Disappear leaves artefacts | The fill source does not match the surroundings | Try a different fill (neighbour, background, or a matching flat colour) |
| The shader mode shows nothing | The hair shader has not been written or connected | Open the shader in the Code panel and author it |