Unity Products:Amplify Shader Editor/Grayscale

From Amplify Creations Wiki
Revision as of 00:06, 2 December 2023 by AmplifyWiki (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Back to Node List

Grayscale Node

The Grayscale node outputs a grayscale float value from the color value specified on its RGB property. Several styles can be selected via the Grayscale Style property to achieve different results.


Nodes used: Texture Sample, Grayscale

Node Parameter Description Default Value
RGB Color value to be converted to grayscale. Only visible if the respective input port is not connected. 0,0,0
Grayscale Style Available styles to calculate a grayscale value from a color.
  • Luminance: Uses Unity internal Luminance function ( Dot product between color value and unity_ColorSpaceLuminance)
  • Natural Classic: Dot product between color value and vector 0.299,0.587,0.114
  • Old School: Calculates color average value ( sums all channels and divide by 3 )
Luminance


Input Port Description Type
RGB Color value to be converted to grayscale. Vector 3


Back to Node List