You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
thebookofshaders/glossary/pow.md

24 lines
618 B
Markdown

10 years ago
## Pow
Return the value of the first parameter raised to the power of the second.
### Declaration
10 years ago
```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
```x``` specify the value to raise to the power ```y```.
10 years ago
```y``` specify the power to which to raise ```x```.
10 years ago
### Description
```pow()``` returns the value of ```x``` raised to the ```y``` power.
<div class="simpleFunction" data="y = pow(x,3.0); "></div>
### See Also
[inversesqrt](index.html#inversesqrt.md), [sqrt](index.html#sqrt.md), [Chapter 05: Shaping Functions](../05/)