-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Per entity texture modifications #2734
Comments
Possibly related to #64? |
Entities that share the same handle for a component will all link to the same data underneath, that's the point of handles... It could be a nice addition to be able to duplicate an handle and get a new handle pointing to the cloned data. |
Specifically for sprites we have been discussing removing materials and just directly exposing "color" and "texture handle" on the sprite type (or bundle). Not quite sure what we'll land on yet, but I do agree that in the case of sprites, the material abstraction might not be worth it. Currently the new |
I think that the ability to individually set the color or, at least, the alpha component of a sprite without continuously creating new handles would be a really nice addition! |
Sprites can now be tinted! https://github.com/bevyengine/bevy/blob/latest/examples/2d/transparency_2d.rs |
What problem does this solve or what need does it fill?
Currently, there's no easy way to set the opacity of one entity's sprite.
What alternative(s) have you considered?
Modifying the texture directly would modify it for all entities sharing that texture.
The text was updated successfully, but these errors were encountered: