Unity Products:Amplify Shader Editor/Color
The Color node ( shortcut: numeric 5 key ) generates a float4 value containing four float components. This value is usually useful to either define a Constant value which is directly used in shader calculations or to define an exposed Property value that can be modified by the material inspector that uses it. The function of this node is very similar to the Vector4 Node, the difference is the convenience of representing and changing the values with a color picker.
|Node Parameter||Description||Default Value|
|Type|| A set of ways the value behaves in different situations.
|Name||Name of the property holding the value. This is the name that will be shown in the material properties label if type is set to Property, if not this name is ignored but still useful for organization purposes or to generate a Property Name||Color #|
|Variable Mode|| Defines if the current property/global variable is to be created on the current shader.
|Auto-Register||If toggled on, creates the property and/or global variable even if not connected to an Output node||Off|
|Precision|| Defines the amount of bytes the variable can hold, effectively defining how precise the value is. It's usefulness is bond by the hardware specifications necessary. Lowest precision is slightly faster but might produce errors and artifacts.
|Default Value||This is the value the shader currently holds. It's also the default value that is used when a new material is created with this shader.||( 0, 0 ,0 ,0 )|
|Property Name||This is the variable name that contains the value, this is automatically generated using the Name parameter, it's greyed out and not editable. The generation process removes special characters, whitespaces and adds an underscore at the beginning ( ie: "My Property Name" becomes "_MyPropertyName" ). This parameter is only visible in Property, Instanced Property and Global types to indicate what's the variable name to use when editing this value by script.||_Color#|
|Material Value||This is the value the node the material currently holds. This parameter is only visible in Property and Instanced Property types which are the two types that let you change the value per material.||( 0, 0 ,0 ,0 )|
|Hide in Inspector||Does not show the property value in the material inspector||Off|
|HDR||Indicates that a property expects a high-dynamic range (HDR) value||Off|
|Gamma||Indicates that a property is specified as sRGB value in the UI and possibly needs conversion according to color space used||Off|
|Per Renderer Data||Indicates that a property will be coming from per-renderer data in the form of a MaterialPropertyBlock.||Off|
|Custom Attributes||Allows adding custom attributes directly on a textfield||-|
|RGBA||Returns the assigned color value||Float4|
|R||Returns only the R component of the color value which corresponds to the X component of a Vector4||Float|
|G||Returns only the G component of the color value which corresponds to the Y component of a Vector4||Float|
|B||Returns only the B component of the color value which corresponds to the Z component of a Vector4||Float|
|A||Returns only the A component of the color value which corresponds to the W component of a Vector4||Float|
Math Operators - Floats and Color