Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is this glm::translate call correct? #118

Open
shi-yan opened this issue Sep 9, 2021 · 1 comment
Open

is this glm::translate call correct? #118

shi-yan opened this issue Sep 9, 2021 · 1 comment

Comments

@shi-yan
Copy link

shi-yan commented Sep 9, 2021

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) ?

@ghost
Copy link

ghost commented Oct 10, 2022

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));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant