mirror of
https://github.com/godotengine/godot.git
synced 2025-03-13 23:41:08 +08:00
The special case atan(y,0) of the built-in shader function atan(y,x) returns different results on different devices. So this commit will add checks when the atan(y,x) function is used in ParticlesMaterial to set the direction of GPU Particles to make sure the desired values are returned (act as atan2(y,x)). (cherry picked from commit 3580ad6005500abaf9bbb12db73adcfa762bd2e5)