opengl-tutorials/ogl

is this glm::translate call correct?

Opened this issue · 1 comments

http://www.opengl-tutorial.org/beginners-tutorials/tutorial-3-matrices/

on the above page:

Screen Shot 2021-09-09 at 9 42 12 AM

is glm::mat4() an identity matrix? or should it be glm::mat4(1.0) ?

http://www.opengl-tutorial.org/beginners-tutorials/tutorial-3-matrices/

on the above page:

Screen Shot 2021-09-09 at 9 42 12 AM

is glm::mat4() an identity matrix? or should it be glm::mat4(1.0) ?

It's an error in the tutorial. It would work like that (at least in the version of glm I use):

glm::translate(glm::vec3(10.f, 0.f, 0.f));