SetVec3
This function sets a Vec3 uniform.
Syntax
- bool SetVec3(const std::string& name, const Vec3& v)
- bool SetVec3(const std::string& name, const float* v, int count)
Parameters
- name: the name of the shader uniform.
- v: a Vec3 value or pointer to an array of floats.
- count: the number of floats in the array, divided by three.
Returns
Returns true if the uniform exists and is of the correct type and size, otherwise false is returned.