Take an entity, e.g. my modded assembling machine:

This has four layers, Base, Mask, Highlight, Animation
In making my mod most of the structures on the screen are rendered with multiple layers, and I've noticed some things.
If two entities have layers, the layers appear to be drawn interleaved, rather than all on top or all on bottom with respect to render order.
Is this a modding request? A bug? Something I just get to deal with? D:
I've also seen it when dealing with pipe_pictures on assembling machines, where the mask of the assembling machine will cover the pipe picture, either partially or entirely (bob-mods shown, it doesn't happen on mine because only the base layer would obstruct and the rest are transparent/nearly invisible):
