UShader Engine Wikia
Advertisement
Abs

Name[]

abs - returns absolute value of scalars and vectors.

Synopsis[]

vector1 abs(vector1 a);
vector2 abs(vector2 a);
vector3 abs(vector3 a);
vector4 abs(vector4 a);

Parameters[]

a

Vector or scalar of which to determine the absolute value.

Description[]

Returns the absolute value of a scalar or vector.

For vectors, the returned vector contains the absolute value of each element of the input vector.

Advertisement