问题
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?
来源:https://stackoverflow.com/questions/48025910/reinterpret-bits-cast-float-int-in-glsl