Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 301
Geri Borbás Avatar asked May 06 '12 15:05

Geri Borbás


2 Answers

Can you try this ?

float xExponential = pow(xPingPong, 5.0);
like image 139
Mennan Avatar answered Nov 16 '22 13:11

Mennan


Your code is fine just syntax error

Write upto decimal digit

 float xExponential = pow(xPingPong, 5.0);

or

 float xExponential = pow(xPingPong, 5.);
like image 36
Neeleshwar Kumar Avatar answered Nov 16 '22 13:11

Neeleshwar Kumar