GLSL pow function?

Geri Borbás picture Geri Borbás · May 6, 2012 · Viewed 12.2k times · Source

I have this:

    float xExponential = pow(xPingPong, 5);

And is not working, claiming:

ERROR: 0:53: No matching overload for call to function 'pow'

Am I doin' something wrong? Developing for iOS with OpenGL ES 2.0.

Answer

Mennan picture Mennan · May 6, 2012

Can you try this ?

float xExponential = pow(xPingPong, 5.0);