Inputs

Color[XYZ ]

Here, the color values can be input into the Node.

Mode

Here you can select the component to output. You can select from the following options:

  • Red (x), Green (y), Blue (z), Alpha: The selected color component is provided by the Result output. Since the colors are simple vectors, vectors can, for example, also be used to input positions or directions and individual components can be selected. Red (x) then represents the X component, Green (y) the Y and Blue (z) the Z component of the vector. If Mode is set to Alpha – but no alpha channel exists – a value of 1 will be output.
  • Average: This is the sum of all color components divided by the number of components. If Use Alpha is enabled, the alpha channel will be added as would an RGB channel and the result will be divided by four instead of three.
  • Length: Computes the combined length of the color's components.
  • Squared Length: This reflects the Length mode only that the result is not squared in the end. Several mathematical calculations take place within the vector calculation where squared distances have to be used. This option can deliver fast results in these cases.
  • Luminance: Returns the color's luminance based on the average spectral sensitivity of human visual perception of brightness.
  • Sum: Adds all color components together. If Use Alpha is enabled, the alpha channel's brightness will also be included.
  • Min/Max: Only the smallest or largest measured component of the color or the vector will be output. If Use Alpha is enabled, the brightness in the alpha channel will also be compared with the RGB color channels. Note that if no alpha channel is present, this will always be set to a value of 1. This can falsify the Min/Max output. If you know that you are dealing with a normal vector or color without alpha, it's better to leave the Use Alpha option disabled.

Use Alpha

Enables (or disables) the use of an alpha channel. If none exists, a value of 1 will automatically be used for the alpha channel.