- Home /
atan2 bug on iPad4
It looks like atan2 (shader function) doesn't work properly on iPad4 - it returns clamped values, or something like that. Has anyone experienced something similar?
That's so funny, because a while ago I was thinking about using atan2 in a shader, but then thought "wait, this has to also run in a iPad, and it will probably give clamped values or mess up some other way."
Seriously, my experience with shaders is to be pleasantly surprised when the more exotic features mostly work the way they claim to.
I would say this is my first experience like this. Others complex shader work well across iOS devices. Although I have seen some device specific bugs on Android.
Answer by Paulius-Liekis · Mar 03, 2015 at 07:09 PM
It seems like HW bug - I ended up replacing atan2 by my own function.