Merge pull request #61 from amesgames/master

Fixed stencil testing sample to actually set the uniform matrices on …
This commit is contained in:
Joey de Vries
2017-06-29 08:10:14 +02:00
committed by GitHub

View File

@@ -196,8 +196,8 @@ int main()
glm::mat4 model;
glm::mat4 view = camera.GetViewMatrix();
glm::mat4 projection = glm::perspective(camera.Zoom, (float)SCR_WIDTH / (float)SCR_HEIGHT, 0.1f, 100.0f);
shader.setMat4("view", view);
shader.setMat4("projection", projection);
shaderSingleColor.setMat4("view", view);
shaderSingleColor.setMat4("projection", projection);
shader.use();
shader.setMat4("view", view);