
How does uniform 3 work in OpenTK?
Posted Monday, 16 May, 2011 - 10:44 by elaverick inHopefully quite a simple question, but how does GL.Uniform3 work in OpenTK? It's my first time venturing into GLSL and the program I'm working from as an example calls the following code:
shader.setUniformVariable3f("theColor", 1.0, 1.0, 0.0);
However OpenTK takes an int as the first variable rather than a variable name. Any clues?


Comments
Re: How does uniform 3 work in OpenTK?
Here, hope this helps to clear it up.
I overloaded the SendUniform so it's always the same name and not another name for each thing.
With the string you go get the id of that attribute and then send the data to that id