mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-02 04:37:54 +08:00
Merge pull request #61 from amesgames/master
Fixed stencil testing sample to actually set the uniform matrices on …
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user