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 6 months 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