thebookofshaders/glossary/inversesqrt/README.md

23 lines
566 B
Markdown
Raw Normal View History

2017-08-19 10:11:58 +00:00
## Inversesqrt
2015-04-17 04:52:51 +00:00
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
2017-08-19 10:11:58 +00:00
[pow](/glossary/?search=pow), [sqrt](/glossary/?search=sqrt), [Chapter 05: Shaping Functions](/05/)