Swizzle
Which channels of a texture an operator reads, one letter per channel.
A Swizzle says which channels of a texture an operator reads. It has one dropdown for each channel the operator uses, with R, G and B for red, green and blue and A for alpha. Some also offer 0 and 1, which read as that fixed value. A mask reads one channel and a displace map two, so GR on a displace map reads green where it expects red, and red where it expects green.
On a texture with one channel, such as the gray output of Noise, R, G and B all read the gray and A reads as 1. That is why a mask reads R unless it is set otherwise: A would read as 1 everywhere on a gray mask.
Each dropdown is a component that can be connected on its own. A number picks a letter by its position in the list R, G, B, A, 0, 1, counting from 0, and a vector sets one dropdown per number. Text is read as letters, so the text GR sets the first dropdown to G and the second to R. A letter or number that is not offered leaves its dropdown as it is. As a source, a Swizzle sends the positions of its letters to numbers and its letters to text.
The number of dropdowns can change with the operator’s mode. A connection to a dropdown that goes away is removed.
Keywords: channels, rgba, red, green, blue, alpha, mask channel, swizzle