UShader Engine Wikia
Advertisement
Sum2

Name[]

a + b - returns vector c, which is a result of adding vector a and vector b

Synopsis[]

vector1 sum(vector1 a, vector1 b);
vector2 sum(vector2 a, vector1 b);
vector3 sum(vector3 a, vector1 b);
vector4 sum(vector4 a, vector1 b);

Parameters[]

a
A value.
b
A value.
c
The returning value of addition.

Description[]

Returns c = a + b.

For vectors, the returned vector c contains addition of each element of the vector (vector1-vector4) to the respective element of the vector b (only vector1).

Advertisement