I'm reading through and trying to learn shaders, but I suddenly got confused with passing information into the shader.
What is the difference between glVertexAttrib
and glVertexAttribPointer
? Are there different times to use them? Are they just two different ways to do the same thing? Does one provide better or worse performance?