c++ - how to change the hsv of texture in opengl -
this question has answer here:
im having 3 dimensional array of rgba texture , im displaying on viewport.
how can change color hue, saturation , value input user gave . im new opengl need guidance change hsv according user selection .
get glm , @ implementation in gtx/color_space.inl of these functions
template<typename valtype > detail::tvec3< valtype > hsvcolor (detail::tvec3< valtype > const &rgbvalue) template<typename valtype > detail::tvec3< valtype > rgbcolor (detail::tvec3< valtype > const &hsvvalue)
prototyped in gtx/color_space.hpp
Comments
Post a Comment