Im having a three dimensional array of rgba texture and im displaying it on my viewport.
how can i change the color Hue, Saturation and value by input user gave . im new to opengl so need guidance to change the HSV according to user selection .
Im having a three dimensional array of rgba texture and im displaying it on my viewport.
how can i change the color Hue, Saturation and value by input user gave . im new to opengl so need guidance to change the HSV according to user selection .
Get glm and look at the 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