FlingEngine icon indicating copy to clipboard operation
FlingEngine copied to clipboard

Cannot change the pipeline of a material at runtime

Open BenjaFriend opened this issue 5 years ago • 0 comments

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 avatar Jan 05 '20 15:01 BenjaFriend