Looking inside your tox I noticed that for some values the glsl_color_space_converter glslTOP returns some nan values, is this expected? For instance, setting the RGB parameter to 0,0,0 gives me a white lamp color and that GLSL TOP returns nan,nan,1.
original post - https://forum.derivative.ca/t/philips-hue/5411/27