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 rotation and color support for Quad and Sprite types #1

Open
hecrj opened this issue Apr 24, 2019 · 0 comments
Open

Add rotation and color support for Quad and Sprite types #1

hecrj opened this issue Apr 24, 2019 · 0 comments
Labels
feature New feature or request help wanted Extra attention is needed

Comments

@hecrj
Copy link
Owner

hecrj commented Apr 24, 2019

As of now, there is no way to set a rotation/color per quad/sprite. This is a really basic feature.

We could add support for it easily here and here. However, some games do not really need to use this feature and sending additional data to the GPU has a cost.

Before implementing this, I think we should write some basic benchmarks so we can discuss how to proceed (see #13). Maybe the overhead is negligible (I doubt it)? Maybe we can implement a different pipeline with a different shader and smartly select it at runtime? Maybe instanced drawing is not a good idea once we add more data? Maybe we can add it as a feature?

@hecrj hecrj added feature New feature or request help wanted Extra attention is needed labels Apr 24, 2019
@hecrj hecrj changed the title Add rotation and color in Quad and Sprite types Add rotation and color support for Quad and Sprite types Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant