GetVec2
This function gets the value of a Vec2 uniform.
Syntax
- Vec2 GetVec2(string name)
Parameters
- name: the name of the shader uniform.
Returns
Returns a Vec2 value. If the uniform does not exist, or is not of the proper type, Vec2(0) will be returned.