oF > GLSL ... Hex > vec3

Hey everyone,

Has anyone ever tried to convert a hex colour value to a vec3 colour to pass as a uniform to GLSL? I can’t seem to really find much googling around. Am I missing something stupid obvious? :wink:

Thank you kindly.

shader.setUniform4f("somecolor", ofFloatColor::fromHex(0xFFFF00))

Amazing. Thank you Arturo. Always appreciated.