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.
22 lines
500 B
Markdown
22 lines
500 B
Markdown
10 years ago
|
## Exp
|
||
|
Return the natural exponentiation of the parameter
|
||
|
|
||
10 years ago
|
### Declaration
|
||
10 years ago
|
```glsl
|
||
|
float exp(float x)
|
||
|
vec2 exp(vec2 x)
|
||
|
vec3 exp(vec3 x)
|
||
|
vec4 exp(vec4 x)
|
||
|
```
|
||
|
|
||
|
### Parameters
|
||
10 years ago
|
```x``` specify the value to exponentiate.
|
||
10 years ago
|
|
||
|
### Description
|
||
|
```exp()``` returns the natural exponentiation of ```x```.
|
||
|
|
||
|
<div class="simpleFunction" data="y = exp(x); "></div>
|
||
|
|
||
|
### See Also
|
||
|
|
||
9 years ago
|
[log](/glossary/?search=log), [log2](/glossary/?search=log2), [exp2](/glossary/?search=exp2), [Chapter 05: Shaping Functions](/05/)
|