2015-04-17 04:52:51 +00:00
|
|
|
## Inversesqrt
|
|
|
|
Return the inverse of the square root of the parameter
|
|
|
|
|
2015-04-18 14:41:34 +00:00
|
|
|
### Declaration
|
2015-04-17 04:52:51 +00:00
|
|
|
```glsl
|
|
|
|
float inversesqrt(float x)
|
|
|
|
vec2 inversesqrt(vec2 x)
|
|
|
|
vec3 inversesqrt(vec3 x)
|
|
|
|
vec4 inversesqrt(vec4 x)
|
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
2015-04-18 14:41:34 +00:00
|
|
|
```x``` specify the value of which to take the inverse of the square root.
|
2015-04-17 04:52:51 +00:00
|
|
|
|
|
|
|
### Description
|
|
|
|
```inversesqrt()``` returns the inverse of the square root of ```x```.
|
|
|
|
|
|
|
|
<div class="simpleFunction" data="y = inversesqrt(x); "></div>
|
|
|
|
|
|
|
|
### See Also
|
|
|
|
|
2015-04-17 18:16:45 +00:00
|
|
|
[pow](index.html#pow.md), [sqrt](index.html#sqrt.md), [Chapter 05: Shaping Functions](../05/)
|