Difference between revisions of "Lua Shader Exponential Functions"

From GiderosMobile
(Created page with "{| class="wikitable" |- ! Function !! Syntax !! Description |- | pow || pow(x,y) || Returns x raised to the y power. |- | exp || exp(x) || Returns the natural exponentiation o...")
 
 
Line 17: Line 17:
 
| isqrt || isqrt(x) || Returns the inverse square root of x.
 
| isqrt || isqrt(x) || Returns the inverse square root of x.
 
|}
 
|}
 +
 +
{{SHADERS}}

Latest revision as of 01:45, 7 November 2023

Function Syntax Description
pow pow(x,y) Returns x raised to the y power.
exp exp(x) Returns the natural exponentiation of x.
log log(x) Returns the natural logarithm of x.
exp2 exp2(x) Returns 2 raised to the x power.
log2 log2(x) Returns the base 2 logarithm of x.
sqrt sqrt(x) Returns the square root of x.
isqrt isqrt(x) Returns the inverse square root of x.