I'm trying to learn how to program vertex shaders. In Apple's sample project they have a line to set a
glUniform1f(uniforms[UNIFORM_TRANSLATE], (Glfloat)transY);
Then this value is used in
// value passt in f
// glUniform1f(uniforms[UNIFORM_TRANSLATE](Glfloat)transY);
uniform float translate;
void main()
{
gl_Position.y+=sin( translate);
…
I was unable to find a list of all uniforms of all the uniforms.
Does any one know where I can find a list of all the uniforms and a good book or tutorial on learning how to program vertex shaders.