Unity Products:Amplify Shader Editor/ATan2

From Amplify Creations Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Back to Node List

ATan2 Node

The ATan2 node outputs the arctangent of the division A/B. If (B,A) defines a (x,y) vector then using this operator returns the angle in radians it does with the x-axis
NOTE: ATan2 between multi-channel data types are done per-channel. If A and B have different channel amounts a cast is done to match the one with the most amount of channels.


Nodes used: Texture Coordinates, ATan2, Tau, Divide, Float, Add, Vector2, HSV to RGB, Length, One Minus

Node Parameter Description Default Value
A Dividend of the division operation. Only visible if the respective input port is not connected. 0
B Divisor of the division operation. Only visible if the respective input port is not connected. 0


Input Port Description Type
A Dividend of the division operation. Float [1]
B Divisor of the division operation. The outputted result will have its sign given by this parameter. Float [1]

  1. ^ Port automatically adapts to all connection types except Matrices and Sampler types.

Back to Node List