UShader Engine Wikia
Advertisement
Log2

Name[]

Log2 - returns the base-2 logarithm of scalars and vectors

Synopsis[]

vector1 log2(vector1 a);
vector2 log2(vector2 a);
vector3 log2(vector3 a);
vector4 log2(vector4 a);

Parameters[]

a
Vector or scalar of which to determine the base-2 logarithm.

Description[]

Returns the base-2 logarithm a.

For vectors, the returned vector contains the base-2 logarithm of each element of the input vector.

Advertisement