SetVec2
This function sets a Vec2 uniform.
Syntax
- bool SetVec2(string name, Vec2 v)
- bool SetVec2(string name, number v, number count)
Parameters
- name: the name of the shader uniform.
- v: a Vec2 value or pointer to an array of floats.
- count: the number of floats in the array, divided by two.
Returns
Returns true if the uniform exists and is of the correct type, otherwise false is returned.