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

UI materials have some usability friction when used to bevy shaders #255

Open
NiseVoid opened this issue May 5, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@NiseVoid
Copy link
Contributor

NiseVoid commented May 5, 2023

UI materials currently aren't as low friction to use as they probably should.

The issues I've found so far are:

  • Materials properties end up in bind group 3. In the regular shader pipeline in bevy these are in bind group 1.
  • The UVs in VertexOutput are vec3, so they cannot be passed directly to functions that sample textures uvs.
  • The way the custom shader example sets up the material produces a new asset every render, the example should show a better approach
@StarArawn StarArawn added the enhancement New feature or request label May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants