cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

acmihal
Journeyman III

Limited domain of GLSL atan function

Hi,

    I've noticed that the GLSL atan(y, x) function appears to only return a correct result when x >= 0.0 and x > abs(y). Thus the result is limited to -pi/4 to pi/4. Anything outside of this range seems to have a significant error. I am using a x1650 pro card on linux with driver 8.54.3.

I can live with this limitation since it is straightforward to write a wrapper function that will work over the full -pi to pi range. However, I'd like to know in what circumstances I need to use such a workaround. Is this limitation a known issue, and does it affect all AMD cards, or just certain cards?

 

Thanks,

Andrew

0 Likes
0 Replies