Colour to Greyscale Colour

From Terragen Documentation from Planetside Software
Revision as of 23:33, 21 March 2022 by Redmaw (talk | contribs) (Updated description of math involved.)
Jump to navigation Jump to search
Colour to Greyscale Colour
Colour to Greyscale Colour


Overview

The Colour to greyscale colour node converts the Input colour into greyscale colour. The math is the same for converting colour data to scalar data according to the node input type conversion rules which are described in the Node Input Type Conversion documentation.


When converting a colour to a scalar, the scalar is set to the luminance value of the colour:

    luminance = 0.2125 * r + 0.7152 * g + 0.0724 * b


Settings:

  • Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Colour to greyscale colour nodes in a project.
  • Enable: When checked, the node is active and the conversion operation will take place. When unchecked the values assigned to its Main Input, if any, are passed through, otherwise a value of 0 is passed through.