Branch-free HSV to RGB conversion in shader

Rate this Article:
(one vote)

Approved for Versions:4.8

Some or all of the information on this page is inconsistent, irrelevant or confusing.

Please help clean it up if you are able.

Original Author: DarthCoder (talk)

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.