2015-04-17 04:52:51 +00:00
|
|
|
## Pow
|
|
|
|
Return the value of the first parameter raised to the power of the second.
|
|
|
|
|
2015-04-18 14:41:34 +00:00
|
|
|
### Declaration
|
2015-04-17 04:52:51 +00:00
|
|
|
```glsl
|
|
|
|
float pow(float x, float y)
|
|
|
|
vec2 pow(vec2 x, vec2 y)
|
|
|
|
vec3 pow(vec3 x, vec3 y)
|
|
|
|
vec4 pow(vec4 x, vec4 y)
|
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
2015-04-18 14:41:34 +00:00
|
|
|
```x``` specify the value to raise to the power ```y```.
|
2015-04-17 04:52:51 +00:00
|
|
|
|
2015-04-18 14:41:34 +00:00
|
|
|
```y``` specify the power to which to raise ```x```.
|
2015-04-17 04:52:51 +00:00
|
|
|
|
|
|
|
### Description
|
|
|
|
```pow()``` returns the value of ```x``` raised to the ```y``` power.
|
|
|
|
|
|
|
|
<div class="simpleFunction" data="y = pow(x,3.0); "></div>
|
|
|
|
|
|
|
|
### See Also
|
|
|
|
|
2016-04-06 15:44:45 +00:00
|
|
|
[inversesqrt](/glossary/?search=inversesqrt), [sqrt](/glossary/?search=sqrt), [Chapter 05: Shaping Functions](/05/)
|