Branch-free HSV to RGB conversion in shader - Epic Wiki

# Branch-free HSV to RGB conversion in shader

Rate this Article:

5.00

(one vote)

Approved for Versions:4.8

Note

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.

Hsv-to-rgb-material-function.jpeg

Retrieved from "https://wiki.unrealengine.com/index.php?title=Branch-free_HSV_to_RGB_conversion_in_shader&oldid=17083"

Categories:

Hidden category: