Skip to content

Cannot change the pipeline of a material at runtime #140

Description

@BenjaFriend

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

Metadata

Metadata

Assignees

Labels

PRI 1Priority 1; Critical

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions