Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. GLint viewLoc = glGetUniformLocation(theProgram.get_programID(), "view");
  2. GLint projectionLoc = glGetUniformLocation(theProgram.get_programID(), "projection");
  3. glUniformMatrix4fv(viewLoc, 1, GL_FALSE, glm::value_ptr(view));
  4. glUniformMatrix4fv(projectionLoc, 1, GL_FALSE, glm::value_ptr(projection));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement