Merge pull request #201 from NicholasBlaskey/master

Removed a duplicate line of setting a uniform
This commit is contained in:
Joey de Vries
2020-10-06 09:47:36 +02:00
committed by GitHub

View File

@@ -214,7 +214,6 @@ int main()
model = glm::translate(model, glm::vec3(0.0f, -1.0f, 0.0)); model = glm::translate(model, glm::vec3(0.0f, -1.0f, 0.0));
model = glm::scale(model, glm::vec3(12.5f, 0.5f, 12.5f)); model = glm::scale(model, glm::vec3(12.5f, 0.5f, 12.5f));
shader.setMat4("model", model); shader.setMat4("model", model);
shader.setMat4("model", model);
renderCube(); renderCube();
// then create multiple cubes as the scenery // then create multiple cubes as the scenery
glBindTexture(GL_TEXTURE_2D, containerTexture); glBindTexture(GL_TEXTURE_2D, containerTexture);