iphoneopengl-esglslfragment-shader

GLSL pow function?


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.


Solution

  • Can you try this ?

    float xExponential = pow(xPingPong, 5.0);