-
Notifications
You must be signed in to change notification settings - Fork 1
Fix drawing layer organisation #54
Comments
Might be a good idea to make some sort of array that layers the data from top to bottom according to an index, instead of manually entering numbers. |
I like this idea, @AlexEnerdyne. Can we discuss this? Do you have an idea on how to implement this? |
@AlexEnerdyne , this is currently being handled by manually keeping track of which entities are in which layer, and hard-coding this. Any ideas on how to do this properly (and efficiently) would be great. I can think of ways of populating vectors of entities, then layering them in the order in which they appear, however the implementation I'm thinking of would require updating the layer of all entities whenever another layer is added. This obviously isn't viable. |
@Cullen-Enerdyne Correct me if I am wrong, but the only reason we need so many layers is because of the way blending currently works? |
That's part of the reason, but sometimes we also need it for occlusion. |
This is not a full solution, but we could definitely add |
Make sure entities are being drawn at the correct layer.
The text was updated successfully, but these errors were encountered: