Slight cleanup
This commit is contained in:
parent
8bfdbccac1
commit
ea5acc464f
10
src/main.cpp
10
src/main.cpp
@ -253,15 +253,9 @@ int main() {
|
|||||||
|
|
||||||
|
|
||||||
// Pass a matrix to the shader
|
// Pass a matrix to the shader
|
||||||
unsigned int ModelMatrixLoc = glGetUniformLocation(shader.ID, "model");
|
shader.setMat4("view", view);
|
||||||
glUniformMatrix4fv(ModelMatrixLoc, 1, GL_FALSE, glm::value_ptr(model));
|
|
||||||
|
|
||||||
unsigned int ViewMatrixLoc = glGetUniformLocation(shader.ID, "view");
|
|
||||||
glUniformMatrix4fv(ViewMatrixLoc, 1, GL_FALSE, &view[0][0]);
|
|
||||||
|
|
||||||
unsigned int ProjectionMatrixLoc = glGetUniformLocation(shader.ID, "projection");
|
|
||||||
glUniformMatrix4fv(ProjectionMatrixLoc, 1, GL_FALSE, &projection[0][0]);
|
|
||||||
|
|
||||||
|
shader.setMat4("projection", projection);
|
||||||
|
|
||||||
|
|
||||||
glBindVertexArray(VAO);
|
glBindVertexArray(VAO);
|
||||||
|
Loading…
Reference in New Issue
Block a user