-1

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 .

genpfault
  • 51,148
  • 11
  • 85
  • 139
Wagmare
  • 1,354
  • 1
  • 24
  • 58

1 Answers1

0

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

Solkar
  • 1,228
  • 12
  • 22