patriciogonzalezvivo / thebookofshaders

Step-by-step guide through the abstract and complex universe of Fragment Shaders.
http://TheBookOfShaders.com
Other
5.96k stars 677 forks source link

Update atan result range. #395

Open byeval opened 1 year ago

byeval commented 1 year ago

should be -PI/2 to PI/2.

patriciogonzalezvivo commented 1 year ago

Mmmm... Are you sure the range is between -PI/2 and PI/2 ? on total that doesn't add up to TAU

byeval commented 1 year ago

yeah, I just checked khronos document, only the second overload range is between -PI/2 and PI/2, updated! https://registry.khronos.org/OpenGL-Refpages/gl4/html/atan.xhtml