SetFloat
This function sets a float uniform.
Syntax
- bool SetFloat(string name, number f)
- bool SetFloat(string name, number f, number 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.