I need the GLSL equivalent of
float f;
int i = *(int *)&f;
I know that there is floatBitsToInt() , but unfortunately it's in 3.3 GL version and upper. I need it for 3.0.
Any thoughts?
I need the GLSL equivalent of
float f;
int i = *(int *)&f;
I know that there is floatBitsToInt() , but unfortunately it's in 3.3 GL version and upper. I need it for 3.0.
Any thoughts?