How to send my model matrix only once per model to shaders
问题 For reference, I'm following this tutorial. Now suppose I have a little application with multiple types of model, if I understand correctly I have to send my MPV matrix from the CPU to the GPU (in other words to my vertex shader) for each model, because each model might have a different model matrix from one to another. Now looking at the tutorial and this post, I understand that the call to send the matrix to my shader ( glUniformMatrix4fv(myMatrixID, 1, GL_FALSE, &myModelMVP[0][0]) ) should