Layers let you stack Render Raw settings and, by using masks, control what parts of the image they affect.

The Values, Colors, and Effects panels all show their settings for the active layer.
In the layers list, double click or Ctrl click a layer’s name to rename it. You can click the checkbox icon to disable or re-enable a layer. Layers with masks also get a mask icon, which can be used to turn off all of that layer’s masks at once. They and their masks are ordered from the bottom up, so the top of the list is applied last (like paint layers, unlike modifiers).
The Factor controls the strength of the whole layer and the Preset replaces all of the layer’s settings with a saved preset.
Masks limit their layer’s effects to specific parts of the image.
Each one combines with the masks below it by its blend mode:
The bottom mask is combined with the whole frame, so setting it to − will invert it. You can also invert any mask with the swap icon. The Factor controls its opacity.
View Mask shows the active layer’s resulting masks in black and white so you can more easily adjust them.
Expand grows or shrinks the mask by a number of pixels. Blur softens it. Anti-Aliasing smooths the edges, which can be helpful for render passes.
Each layer with masks gets an output in the Masks section of the Render Raw node, so you can easily use the same mask elsewhere in the compositor.
Some effects use masks a little differently, since a simple cutout is generally not what we want.
You can choose between a few different gradient shapes, each with their own falloff options:
Stretch to Frame stretches the shape to fill the frame (shocking), and Fit to Frame makes it fit inside the view without stretching the proportions. Fit to Below and Stretch to Below do the same but inside the bounding box of the masks below, so you can make a gradient run across a box mask or an object’s matte.
The Camera Overlay (widget icon) lets you drag the gradient in the camera view. On a Line, the black dot is where the gradient starts and the white dot is where it ends. On the other shapes, the white dot moves the center and the black dot sets the size and/or rotation. A Vignette also has a blue dot for the feathering. Backspace over any dot to reset it.
A generated texture: Noise, Waves, Voronoi, or Cells, which have all the same settings as Blender’s texture nodes.
Uses a picture’s brightness as the mask. Transparent areas are considered black. Set the image’s color space to Non-Color if you need to use its linear values exactly.
Fit is how the picture is scaled to fill the frame and Extension controls how it repeats or stretches to the edge of the frame.
The Camera Overlay for these adds dots to the camera view:
Uses one channel of the image: Luminance, Saturation, Value, Red, Green, Blue, or Alpha.
Uses one of the view layer’s passes. Picking a pass that is currently off will turn it on for the view layer. Render Raw turns it off again when nothing else uses it. The viewport compositor can currently only display passes from EEVEE, so other engines show a warning for most passes.
Selects one color in the image. You can pick the color with the eyedropper. Minimum is how far a hue can be from it and still be fully included, Maximum is where the coverage stops, and Falloff controls the gradient between the two.
Picks objects, materials, or assets by name. The plus button adds the selected objects or the active material. You can also type names into Matte ID manually, separated by commas. In EEVEE, the eyedropper allows you to pick items from the viewport. Other engines like Cycles can’t use the cryptomatte in the viewport, so the mask only appears in renders when not using EEVEE.
Uses a mask from the Mask mode of the Image or Movie Clip editor.
Camera Overlay lets you edit the spline in the 3D viewport’s camera view:
Shows the layer only while its camera is the active scene camera, so you can easily make adjustments for each shot. Inverting this shows the layer through every other camera instead.