Branch-free HSV to RGB conversion in shader

Original Author: () Certain color operations can become far easier in HSV color space, unfortunately Unreal 4 includes only an RGB to HSV shader node in the engine by default. This is a simple HSV ...

Updated about 1 year ago Edit Page Revisions

Original Author: ()

Certain color operations can become far easier in HSV color space, unfortunately Unreal 4 includes only an RGB to HSV shader node in the engine by default. This is a simple HSV to RGB conversion shader function based on the branch-free function found on the lolengine blog.

hsv-to-rgb-material-function.png