GetFloat
This function gets the value of a float uniform.
Syntax
- float GetFloat(const std::string& name)
Parameters
- name: the name of the shader uniform.
Returns
Returns a float value. If the uniform does not exist, or is not of the proper type, 0.0 will be returned.