opengl-tutorials / ogl

http://www.opengl-tutorial.org
2.69k stars 925 forks source link

Fix scale matrix example command #120

Closed jneidel closed 6 months ago

jneidel commented 2 years ago
glm::mat4 myScalingMatrix = glm::scale(2.0f, 2.0f ,2.0f);
// -> to
glm::mat4 myScalingMatrix = glm::scale(glm::mat4(1), glm::vec3(2,2,2));

The given glm::scale did not work for me, the docs request the latter format. Which works fine now.