> For the complete documentation index, see [llms.txt](https://docs.lightact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lightact.com/layers-and-layouts/layer-layouts/nodes/texture-processing/luma-key.md).

# Luma Key

*Texture Luma Key* is a very useful node designed to mask pixels based on a given threshold. In practice, it is used to create a composite based on the luminance levels of the incoming texture.

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2FGv0UDh3G5O8VDj1GV0Wn%2FtextureLumaKey.png?alt=media&amp;token=0cfd4067-9aca-43dc-8403-d1134530d88a" alt=""><figcaption></figcaption></figure></div>

## Setup

To use the node, you first have to insert it in the *Layer Layouts*. You can find it in the dedicated *Search bar*, under **Utilities -> Texture** collapsible.

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-d802c3c4e3c49096550d8890e71f161b28e2d211%2FSearchBarLuma.png?alt=media" alt=""><figcaption></figcaption></figure></div>

Give the *Texture Luma* node a *Texture input* and connect it to an active *Lifeline*.

<figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-93d8e7fd161122c94335370f879510c542235fa0%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

All pixels from the incoming *Texture* whose brightness is above the *Luminance value* will be masked. This node is often used in combination with other Texture nodes, such as the *Texture Blend* node.

<figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-924029df1aa12e9a1b8eeed02ecce46c6f8cbbee%2FLUMA.png?alt=media" alt=""><figcaption></figcaption></figure>
