thebookofshaders/glossary/log.md
Patricio Gonzalez Vivo 28f372e311 add glossary
2015-04-17 00:52:51 -04:00

446 B

Log

Return the natural logarithm of the parameter

float log(float x)  
vec2 log(vec2 x)  
vec3 log(vec3 x)  
vec4 log(vec4 x)

Parameters

x Specify the value of which to take the natural logarithm.

Description

log() returns the natural logarithm of x.

See Also

log2, exp, exp2