Unity Products:Amplify Shader Editor/HSV to RGB: Difference between revisions

From Amplify Creations Wiki
Jump to navigation Jump to search
ampwiki>Amplify RnD Rick
No edit summary
(No difference)

Revision as of 11:51, 26 August 2021

Back to Node List

HSV to RGB Node

The HSV to RGB node converts a value from an HSV to a RGB color space. RGB color space is defined by three separate channels:

  • R: First channel defines the amount of red in the color
  • G: Second channel defines the amount of green in the color
  • B: Third channel defines the amount of blue in the color

As for the HSV color space, it represents color in a cylinder and also contains three separate channels but each one as a completely different meaning

  • Hue: First channel defines the color itself as an angle on a color cylinder
  • Saturation: Second channel defines amount of gray in the color as a distance across a color cylinder radius
  • Value: Third channel defines brightness/intensity of the color as a distance across a color cylinder height


Nodes used: World Position, Float, HSV to RGB

Node Parameter Description Default Value
Hue Color itself, represents an angle on the HSV cylindrical model.

Only visible if the respective input port is not connected.

0
Saturation Amount of gray in the color, represents a distance across the HSV cylindrical model radius.

Only visible if the respective input port is not connected.

0
Value Brightness/Intensity of the color, represents a distance across the HSV cylindrical model height.

Only visible if the respective input port is not connected.

0
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.
  • Float: Highest precision, useful for values that can be very high or very low in value (ie: positions, coordinates, etc)
  • Half: Medium precision, in most cases is as good as Float but at half of it's precision
  • Inherit: Use global precision set on master node properties
Float


Input Port Description Type
Hue Color itself, represents an angle on the HSV cylindrical model. Float
Saturation Amount of gray in the color, represents a distance across the HSV cylindrical model radius. Float
Value Brightness/Intensity of the color, represents a distance across the HSV cylindrical model height. Float


Output Port Description Type
RGB Returns the converted value in RGB color space. Float3
R Returns only the Red component of the converted value in RGB color space. Float
G Returns only the Green component of the converted value in RGB color space. Float
B Returns only the Blue component of the converted value in RGB color space. Float

Back to Node List