Layer Masks
A layer mask decides where one layer shows. Where the mask is white the layer is at full strength, where it is black the layer is hidden and whatever lies beneath it shows through, and grey is in between. Nothing is erased: turn the mask off, or paint it white again, and the layer is all there. Each layer has one mask, and it covers every channel the layer holds — its Albedo, Roughness, Normal and the rest hide and show together. Masks work on the Loaded Mesh and the Generated Mesh, on texture layers and on vertex paint layers, and they are made in the Layers window.
A mask is a small stack of its own: a white or black start, then any mix of fills, painted strokes, maps baked from the model, live Smart Masks and levels, combined from the bottom up into one grey image.
A layer mask (this page) belongs to one layer and changes what that layer shows. The Material Mask (paint stencil) — the Layer Mask row at the bottom of the Paint palette — belongs to a material and holds the brush back; it hides nothing. A paint mask protects parts of the surface from whatever tool you hold. The three are separate and can be used together.
Adding a mask
Select a layer in the Layers window and press the mask button, the mask icon at the left end of the strip under the list. It opens the Layer Mask dialog on that layer. The Base and folders take no mask: with one of them selected the button is greyed (for vertex layers it opens the points stencil instead). The quicker way is to right-click the layer: Add White Mask shows the whole layer and you hide parts, Add Black Mask hides it and you reveal parts, and Add Mask with a Smart Mask starts the mask from one of the Smart Masks.
The dialog's Mask Type list holds every way a mask can start:
- White (shows the layer) and Black (hides the layer).
- Baked from the model — Occlusion Map, Cavity Map, Curvature Map and Edge Map, baked once (see below).
- Smart Masks — live masks made from the model (its shape, or a noise laid over it) and made again whenever it changes.
Press Add Mask. The dialog keeps your last pick, so giving layer after layer the same kind of mask is quick. A layer only ever has one mask: on a layer that has one, the button reads Add to Mask, the dialog says This layer has a mask already: this is added to it, on top, and your pick goes on top of the mask's stack instead of replacing it.
A mask is the size of the largest image among the layer's channels, and each channel reads it at its own size. A layer whose material has no image yet in any of the layer's channels cannot take a mask until you paint on it.
Baking a map into the mask
Picking one of the four maps shows its bake settings in the dialog. The bake runs in the background: the Rendering Layer Mask notice shows its progress, and its OK only closes the notice — the bake goes on. When it is done the map is laid into the mask at the mask's size. It needs a UV map: on the Generated Mesh, the topology and its UV map first.
| Control | What it does |
|---|---|
| Resolution | The size the map is baked at (1024 to start; the list offers the sizes your edition can bake). The result is resized to the mask's own size. |
| Invert | Flips the baked map before it becomes the mask: white shows the layer, black hides it. |
| Max ray distance (meters) | Occlusion only, 0 to 10 m (1.00 m to start): how far a ray searches for geometry that shades the surface. |
| Include Normal Map | Folds the mesh's normal map into the bake, so its fine detail darkens creases and cavities or shows up as edges, not only the real geometry. |
| Probe distance (meters) | Cavity, Curvature and Edge Map: how far around each point the surface is probed, 0.001 to 1 m (0.100 m to start) — the scale of what reads as an edge or a cavity. |
| Intensity | Contrast: how strongly the result is pushed toward black and white, 0.1 to 16 (4.0 to start). |
| Smoothing intensity | Blends a smoothing pass guided by the normals into the result, 0 to 100 % (0 to start). It melts false facet lines on a low-poly, smooth-shaded surface. |
| Smoothing degree | How wide that smoothing reaches, 0 to 100 % (50 to start). No effect while Smoothing intensity is 0 %. |
Occlusion Map darkens where the surface is enclosed — under a collar, inside a slot. Cavity Map picks out narrow recesses, Curvature Map separates convex from concave, and Edge Map isolates the ridges where faces meet at an angle, the usual start for edge wear.
A baked map arrives as painted pixels covering the whole mask (on a layer with no mask yet, over a white start), so you can paint over it by hand later. Added to a mask that already has items, it covers them until you lower its Opacity or change its Blend.
The Occlusion Map bakes in every edition. Cavity Map, Curvature Map and Edge Map need Ultra, the same gate as the Cavity, Curvature and Edge Maps bake.
The mask in the Layers window
A masked layer's row shows its own thumbnail, a link icon, then the mask's thumbnail, as Photoshop shows one. The link is a reminder that the mask belongs to that layer and hides every channel it holds. A mask that is off is crossed out in red.
- Click the mask's thumbnail to select the mask: it gets a white frame, the model shows the mask in black and white instead of the material, and the mask's settings open in a window of their own. Click the layer's name or its own thumbnail to go back to the layer.
- Shift+click the mask's thumbnail to turn the mask off or on. Off, the layer shows as if it had no mask, and the mask is kept.
- Right-click the mask's thumbnail, or the layer, for Disable Mask / Enable Mask and Remove Mask.
The mask stays selected while the Layers window is open and shows that mesh and material. Close the Layers window, or switch the material or the mesh on screen, and you are back on the layer.
Building the mask: its own stack
The mask's settings window is titled Layer Mask and the layer's name, and first opens just left of the Layers window. Closing it lets go of the mask; removing the mask closes it.
Mask on turns the whole mask off and on, the same as Shift+click on its thumbnail. Add puts a new item on top of the stack:
- Fill — one grey value everywhere, white to start. The white and black starts are fills too.
- Levels — reshapes everything below it in the stack, as Photoshop's Levels does.
- Smart Mask — any of the Smart Masks. One added on top starts with the Lighten blend, so it adds to what is there rather than covering it.
Painted strokes and baked maps are items too (they are listed as Paint or with the map's name). Where a painted item holds no paint, the items below show through it.
The stack is listed top item first, as the layer list reads. Each item has an eye that hides it without removing it, Move up, Move down, and Remove from the mask. Click an item's name to select it; its settings appear underneath:
| Control | What it does |
|---|---|
| Opacity | How much of the item reaches the mask, 0 to 100 %. |
| Blend | How the item combines with the mask below it (not on a Levels item): Normal lays it over, Multiply multiplies, Add adds (no further than white), Subtract takes it away (no further than black), Lighten keeps the lighter of the two, Darken the darker. |
| Value | A Fill's grey, 0 (black) to 1 (white). |
| Input Black, Input White | Levels: the values that become black and white. Pull them together to sharpen a soft mask toward a cut-out; push them apart to soften it. |
| Gamma | Levels: the midtones, 0.10 to 9.99. 1.00 leaves them alone; higher brightens them, so more of the layer shows. |
| Output Black, Output White | Levels: the range the result is squeezed into. Raise Output Black and nothing is fully hidden any more. |
| A Smart Mask's settings | Its own sliders (see below). Moving one makes the Smart Mask again once you let go of the mouse. |
The stack starts from black and combines from the bottom up, so the bottom item is usually a fill: the white or black start the mask was made with.
Smart Masks
A Smart Mask is made from the model itself — its occlusion, cavities, edges, which way it faces, or a noise — and is made again whenever its settings, the mesh or the maps it reads change. A map the model has not had measured yet is measured in the background: the Smart Mask fills in with a neutral value first and again once the map is in. Smart Masks are no longer a folder of the Node Materials window; they are picked here, in the Mask Type list, the Add button's Smart Mask menu and the layer's right-click menu.
| Smart Mask | What it picks out |
|---|---|
| Dirt | Occlusion and crevices, broken up by a grunge noise. |
| Metal Edge Wear | Convex edges where the surface is open (occluded corners wear less), broken up by grunge. |
| Dust | What faces up and lies open, where dust settles, broken up by grunge. |
| Curvature Mask | Convex edges — or, with Concave (Cavities) raised, the cavities. |
| Occlusion Mask | Where the surface is enclosed and shaded. |
| Mask Builder | Edges, cavities, occlusion and upward-facing surfaces mixed by weights of your own, broken up by grunge. |
| Position Mask | A gradient across the model by position. |
| BnW Spots, Clouds, Dirt Noise, Fractal Sum, Moisture Noise, Directional Noise, Fur Noise | Noise patterns laid over the surface, with Scale, Disorder, Balance, Contrast and Invert. |
Across all of them, Balance moves the mask toward white or black and Contrast sharpens it. Every slider is described with the Smart Mask group nodes in the Node Reference; how the model's maps are measured is on Mesh-Aware Nodes. A Smart Mask's pixels are not saved with the project: they are made again from its settings when the project opens.
Painting into a mask
Select the mask (click its thumbnail) and paint in the Paint tab: the stroke goes into the mask, not into the layer, and the model shows each dab land in black and white. The window says so too: In the Paint tab the brush paints into this mask in the grey of its colour; the eraser takes paint away.
- The Paint Brush paints the grey of its colour — black hides, white shows, a colour paints its own lightness. It paints at the strength it paints colour with, and with its own settings: the tip image with its Roundness and Angle, Noise and Chalk, Dual Brush, the brush Texture, the Stencil overlay, pen pressure, Opacity, Opacity Jitter and Flow. As with colour, dabs that cross within one stroke never build up past the brush's opacity.
- The Eraser takes painted strokes away again, so the mask below them shows.
- Other tools do not paint a mask: the status line says Only the brush and the eraser paint into a mask. Click the layer's own thumbnail to use them on the layer.
The stroke goes into the selected item when that is painted pixels (a baked map is), otherwise into a new Paint item on top of the stack. It reaches only the faces of the layer's material, and Symmetry mirrors it as it does any stroke. The paint mask, the Material Mask (paint stencil) and Auto-Masking do not hold a mask stroke back: they protect a layer's paint, and this is the mask. Each stroke is one undo step.
You paint the mask of the mesh on screen. If the Layers window shows the other mesh's layer, nothing is painted and the status line says which mesh to show.
Undo, duplicating and merging
- Every mask edit is a step for Ctrl+Z: adding or removing a mask or an item, a slider drag (one step for the whole drag), each painted stroke.
- Undo the deletion or merge of a texture layer and its mask comes back with it.
- Duplicate Layer copies a texture layer's mask onto the copy.
- Merge Down bakes the upper layer's mask into the merged pixels: what it hid stays hidden.
Masks are saved with the project.
Masks on vertex paint layers
While the mesh on screen paints its points rather than its textures — a sculpt with no UV map, for instance — the Layers window lists its vertex paint layers (its title reads Vertex Layers - Loaded Mesh or Vertex Layers - Generated Mesh). Those layers take masks too, with one value at every point instead of an image:
- Add one with the layer's right-click menu or the mask button, as above. A baked map is measured at the points, and a Smart Mask is worked out at every point.
- The mask's thumbnail is a flat square of its average grey — a mask over points has no picture to shrink.
- Select it and the model shows it in grey on its points; paint it with the Paint Brush and the Eraser in the Paint tab, one undo step a stroke.
- The mask follows the points as dynamic topology adds and removes them: new points take the mask's fills and Smart Masks, but none of its painted strokes.
With the Base selected, the mask button opens the mesh's own points stencil instead — the Layer Mask strip at the top of the vertex Layers window, described below. See Paint While Sculpting for painting vertex layers from the Sculpt tab.
The Material Mask (paint stencil)
Before layers had masks, each material had one mask of its own, and it is still there, for a different job: it does not hide any layer, it holds the brush back. Paint is held back where this mask is light (where it is dark, with Invert on), so it confines strokes to the recesses, the edges or the open surface it was baked from. It is the Layer Mask row at the bottom of the Paint palette, under Material; in the Layers window it is the Material Mask (paint stencil) strip, shown only while the material has one, with an eye, an edit (pencil) button and a delete button.
The row's buttons:
- The eye — hides the stencil. Hidden, it stops showing on the mesh and stops holding paint back.
- The pencil — opens Edit Layer Mask (below) and shows the stencil on the model.
- The dice — bakes the stencil from the model. The window is the Layer Mask dialog with the four maps only and the bake settings in the table above. Its button reads Create, or Re-bake when the material has a stencil already (re-baking replaces it). Add as layer puts the baked map in the Layers window as a new layer, set to Multiply, above the selected one, instead of making it the stencil; the button then reads Create Layer.
| Edit Layer Mask | What it does |
|---|---|
| Invert | Swaps which areas are protected, for painting as well as on screen. |
| Overlay Opacity | How strongly the stencil is drawn on the mesh, 0 to 1. Display only: it never changes how much paint the stencil blocks. |
| Black point | Everything darker than this becomes fully paintable; raise it to widen the area the brush can reach. |
| Midtones | Biases the middle of the range without moving either end, 0.01 to 0.99; 0.5 is neutral. |
| White point | Everything brighter than this becomes fully protected; lower it to widen the area the brush cannot touch. At or below the black point the stencil works as a hard on/off threshold, and the window says so. |
| Reset Levels | Back to the untouched bake: black 0, midtones 0.5, white 1. |
| Enable Stencil | Shown while stencil painting is off: arms it, so strokes are shaped by the Stencil overlay and confined by this mask at once. |
Every change applies as you make it; Close just closes the window. While you paint the points, the row is the mesh's own points stencil (one for the whole mesh), and its bake asks for Samples per point (4 to 128, 32 to start) and Smoothing passes (0 to 20, 0 to start) instead of a resolution, the normal-map option and the smoothing sliders.