Grayscale
Converts a texture to gray.
Outputs
| Name | Type | Description |
|---|---|---|
| Output | Texture | The gray texture. |
Inputs
| Name | Type | Description |
|---|---|---|
| Input | Texture | The texture to convert. |
Parameters
| Name | Type | Description |
|---|---|---|
| Source | Enum | Which value of a pixel becomes the gray. Luminance weighs the channels the way the eye sees them, Average counts them equally, and Brightest and Darkest take the strongest or weakest channel.Choices: Luminance, Average, Brightest, Darkest, Red, Green, Blue, Alpha |
| Formatadvanced | Enum | The pixel format of the output. Auto is one channel of gray, or keeps four channels when the input has alpha. A one channel format drops the alpha. |
The Grayscale operator takes the color out of a texture and leaves how light or dark each pixel is. Use it for a black and white picture, or to turn a texture into a mask or a control for other operators. Luminance gives the most natural black and white, and Red, Green, Blue or Alpha turn one channel of a map or the shape of a cut-out into a mask.
The alpha of the output is the alpha of the input, whatever the source.
See also Color Correct, Color Ramp.
Keywords: black and white, desaturate, luminance, monochrome