thebookofshaders/glossary/sqrt.md
Patricio Gonzalez Vivo 2c96f43dcf adding more functions
2015-04-17 14:16:45 -04:00

461 B

Sqrt

Return the square root of the parameter

float sqrt(float x)  
vec2 sqrt(vec2 x)  
vec3 sqrt(vec3 x)  
vec4 sqrt(vec4 x)

Parameters

x Specify the value of which to take the square root.

Description

sqrt() returns the square root of x.

See Also

inversesqrt, pow, Chapter 05: Shaping Functions