46 #include "../detail/setup.hpp"
47 #include "../detail/precision.hpp"
48 #include "../exponential.hpp"
49 #include "../vec3.hpp"
50 #include "../vec4.hpp"
53 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
54 # pragma message("GLM: GLM_GTC_color_space extension included")
63 template <
typename T, precision P,
template <
typename, precision>
class vecType>
67 template <
typename T, precision P,
template <
typename, precision>
class vecType>
68 GLM_FUNC_DECL vecType<T, P>
convertLinearToSRGB(vecType<T, P>
const & ColorLinear, T Gamma);
71 template <
typename T, precision P,
template <
typename, precision>
class vecType>
75 template <
typename T, precision P,
template <
typename, precision>
class vecType>
81 #include "color_space.inl"
GLM_FUNC_DECL vecType< T, P > convertLinearToSRGB(vecType< T, P > const &ColorLinear, T Gamma)
Convert a linear color to sRGB color using a custom gamma correction.
GLM_FUNC_DECL vecType< T, P > convertSRGBToLinear(vecType< T, P > const &ColorSRGB, T Gamma)
Convert a sRGB color to linear color using a custom gamma correction.