---
title: Mask
framework: shadergraph
role: symbol
role_heading: ShaderGraph Node
path: shadergraph/compositing/mask
---

# Mask

Outputs areas of background that overlap with the alpha of foreground.

## Parameter Types

Parameter Types Parameter descriptions Discussion The Mask node determines its output using the alpha channels of the foreground and background inputs. The RGB componentt of the output is B*f and the alpha component of the output is b*f. Below is a simple node graph that uses the Mask node to blend a wood and rock texture:

Below are the two original images, the image representation of the alpha of the foreground, and the resulting blended texture applied to a cube:

## See Also

### Nodes

- [Premultiply](shadergraph/compositing/premultiply.md)
- [Unpremultiply](shadergraph/compositing/unpremultiply.md)
- [Additive Mix](shadergraph/compositing/additive-mix.md)
- [Subtractive Mix](shadergraph/compositing/subtractive-mix.md)
- [Difference](shadergraph/compositing/difference.md)
- [Burn](shadergraph/compositing/burn.md)
- [Dodge](shadergraph/compositing/dodge.md)
- [Screen](shadergraph/compositing/screen.md)
- [Overlay](shadergraph/compositing/overlay.md)
- [Disjoint Over](shadergraph/compositing/disjoint-over.md)
- [In](shadergraph/compositing/in.md)
- [Matte](shadergraph/compositing/matte.md)
- [Out](shadergraph/compositing/out.md)
- [Over](shadergraph/compositing/over.md)
- [Inside](shadergraph/compositing/inside.md)
