Enoki provides a set of helper functions for color space transformations. For now, only sRGB and inverse sRGB gamma correction are available. To use them, include the following header file:
#include <enoki/color.h>
Value
>linear_to_srgb
(Value value)¶Efficiently applies the sRGB gamma correction
to an input value in the interval \((0, 1)\).
Value
>srgb_to_linear
(Value value)¶Efficiently applies the inverse sRGB gamma correction
to an input value in the interval \((0, 1)\).