Closed tgalaj closed 5 years ago
Hey,
Is there a way to process specific components based on a variable value? For example, I would like to do some kind of component sorting, based for example on material type (opaque or transparent) to reduce renderer state switching.
You're probably best-off copying the entities into a vector and sorting that.
Hey,
Is there a way to process specific components based on a variable value? For example, I would like to do some kind of component sorting, based for example on material type (opaque or transparent) to reduce renderer state switching.