Grayscale

Converts a texture to gray.

Outputs

NameTypeDescription
OutputTextureThe gray texture.

Inputs

NameTypeDescription
InputTextureThe texture to convert.

Parameters

NameTypeDescription
SourceEnumWhich 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
FormatadvancedEnumThe 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