thebookofshaders/glossary/pow.md
Patricio Gonzalez Vivo 2c96f43dcf adding more functions
2015-04-17 14:16:45 -04:00

602 B

Pow

Return the value of the first parameter raised to the power of the second.

float pow(float x, float y)  
vec2 pow(vec2 x, vec2 y)  
vec3 pow(vec3 x, vec3 y)  
vec4 pow(vec4 x, vec4 y)

Parameters

x Specify the value to raise to the power y.

y Specify the power to which to raise x.

Description

pow() returns the value of x raised to the y power.

See Also

inversesqrt, sqrt, Chapter 05: Shaping Functions