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

Add translation, rotation and scaling control #1

Open
mfdorst opened this issue Oct 29, 2014 · 0 comments
Open

Add translation, rotation and scaling control #1

mfdorst opened this issue Oct 29, 2014 · 0 comments
Assignees
Labels

Comments

@mfdorst
Copy link
Member

mfdorst commented Oct 29, 2014

glPushMatrix() and glPopMatrix() are deprecated, so I need some way of implementing local translation, rotation and scaling.
The proper way of doing this is to pass one or more matrices to the vertex shader, which will be applied locally to each primitive.
The easy way of doing this is probably to code for this stuff in the model. (The classes in model.shape would have members for translation, rotation and scale, and these would be applied in the getters for the shape's vertices.)
I should implement it the easy way now, and then later, when I start getting into more advanced shader technique I can refactor it to utilize the vertex shader instead.

@mfdorst mfdorst added the todo label Oct 29, 2014
@mfdorst mfdorst self-assigned this Oct 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant