Skip to content
Discussion options

You must be logged in to vote

I would be cautious of whatever intuition you have regarding the cost of creating Entities and so on. However, yes, you can:

You can add a system to the RenderStage::Queue stage of the RenderApp and obtain a RenderPhase<Opaque3d> or similar into which you can add() a request to draw your mesh for a given frame. You will still need a way to communicate what should be drawn to your custom rendering system. This is done via systems running in the RenderStage::Extract stage, which normally convert normal-world Entities into RenderApp Entities, but you could use your own data structure in a Resource to do this rather than Entities.

Bevy's animate_shader* example is the best(/only?) example of …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LiamGallagher737
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants