# Recolour or restyle hair

> Add a Hair layer in Nosmai Studio to recolour tracked hair, hide it, or shade it with your own shader. Studio tracks the hair region each frame and applies your choice to it. Use it for colour try-on, a bald look, or a stylised hair effect.

> For AI agents: the complete documentation index is at https://nosmai.com/llms/studio.txt

Product: Nosmai Studio
Group: studio-guides
Source: https://nosmai.com/docs/studio/guides/hair/



## 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

1. In the Layers panel, press **+**, then choose **Hair** under
   **On a face or hand**.
2. 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](/docs/studio/guides/scripting/).

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 |

## Next steps

- [Beauty and makeup](/docs/studio/guides/beauty-and-makeup/)
- [Add a script or shader](/docs/studio/guides/scripting/)
- [Add a layer](/docs/studio/guides/add-a-layer/)

## Reference

- [Layer kinds](/docs/studio/reference/layer-kinds/)
