---
title: Matte
framework: shadergraph
role: symbol
role_heading: ShaderGraph Node
path: shadergraph/compositing/matte
---

# Matte

A merge operation that layers premultiplied foreground over background.

## Parameter Types

Parameter Types Parameter descriptions Discussion The Matte node determines its output using the alpha channels of the foreground and background inputs. The RGB component of the output is Ff+B(1-f) and the alpha component of the output is f+b(1-f). Below is a simple node graph that uses the In 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)
- [Mask](shadergraph/compositing/mask.md)
- [Out](shadergraph/compositing/out.md)
- [Over](shadergraph/compositing/over.md)
- [Inside](shadergraph/compositing/inside.md)
