mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-05 21:21:06 +00:00
378 B
378 B
Abs
Return the absolute value of the parameter
float abs(float x)
vec2 abs(vec2 x)
vec3 abs(vec3 x)
vec4 abs(vec4 x)
Parameters
x
Specify the value of which to return the absolute.
Description
abs()
returns the absolute value of x
.