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