frexp?

Hi,
Is there (or are there any plans for) an equivalent to the HLSL function ‘frexp’ in GLSL?

Thanks

No, but you can use this:

float frexp(float x, out float e)
{
   e = ceil(log2(x));
   return(x * exp2(-e));
}

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.