UShader Engine Wikia
Advertisement
Pow

Name[]

Pow - returns x to the y-th power of scalars and vectors

Synopsis[]

vector1 pow(vector1 x, vector1 y);
vector2 pow(vector2 x, vector1 y);
vector3 pow(vector3 x, vector1 y);
vector4 pow(vector4 x, vector1 y);

Parameters[]

x
A base value.
y
The power to raise the base.

Description[]

Returns x to the power y.

For vectors, the returned vector contains the power of each element of the base vector raised to the respective element of the exponent vector.

Advertisement