thebookofshaders/glossary/exp
2017-08-23 11:34:44 +02:00
..
README.md Remove trailing whitespaces 2017-08-23 11:34:44 +02:00

Exp

Return the natural exponentiation of the parameter

Declaration

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.

See Also

log, log2, exp2, Chapter 05: Shaping Functions