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

move transformations to Vertex Shader #10

Open
lennart opened this issue Dec 11, 2015 · 0 comments
Open

move transformations to Vertex Shader #10

lennart opened this issue Dec 11, 2015 · 0 comments

Comments

@lennart
Copy link
Collaborator

lennart commented Dec 11, 2015

the current fragment shader implementations for plane, circle and tri does really stupid and inefficient 2d-collision detection to rotate objects. this can be simplified by simply rotating scaling and translating the vertices in the vertex shader stage.

However, one has to take care of the following things for images:

  • need to use scaled and rotated texture coordinates
  • should be drawn on an infinite plane to show clamping when scaled down (e.g. see mirrored repeat to make a nice pattern, or crazy effects from clamp to edge )
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