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

Cannot change the pipeline of a material at runtime #140

Open
BenjaFriend opened this issue Jan 5, 2020 · 0 comments
Open

Cannot change the pipeline of a material at runtime #140

BenjaFriend opened this issue Jan 5, 2020 · 0 comments
Assignees
Labels
PRI 1 Priority 1; Critical

Comments

@BenjaFriend
Copy link
Member

Right now there is no way to change the rendering pipeline of a material. For example, if you wanted to change a mesh from a lit/shaded view to a wire frame view, you cannot do so.

This should be simple given that command buffers are rebuilt often and grab the MeshRenderer with a given tag. In order to change the tag we would need to:

  • Remove the current tag on a mesh renderer
  • Add the appropriate tag
  • Wait for command buffers to rebuild

We should have a nice and scaleable way to track what tag a material currently has. There is already the Type attribute on a Material, so we should utilize that. The problem with this is that we may not be able to use that as a tag with entt

@BenjaFriend BenjaFriend added the PRI 1 Priority 1; Critical label Jan 5, 2020
@BenjaFriend BenjaFriend self-assigned this Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PRI 1 Priority 1; Critical
Projects
None yet
Development

No branches or pull requests

1 participant