mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-08 01:10:27 +00:00
23 lines
501 B
Markdown
23 lines
501 B
Markdown
## Exp
|
|
Return the natural exponentiation of the parameter
|
|
|
|
### Declaration
|
|
```glsl
|
|
float exp(float x)
|
|
vec2 exp(vec2 x)
|
|
vec3 exp(vec3 x)
|
|
vec4 exp(vec4 x)
|
|
```
|
|
|
|
### Parameters
|
|
```x``` specify the value to exponentiate.
|
|
|
|
### Description
|
|
```exp()``` returns the natural exponentiation of ```x```.
|
|
|
|
<div class="simpleFunction" data="y = exp(x); "></div>
|
|
|
|
### See Also
|
|
|
|
[log](/glossary/?search=log), [log2](/glossary/?search=log2), [exp2](/glossary/?search=exp2), [Chapter 05: Shaping Functions](/05/)
|