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