- Home /
Rendering objects on top of eachother
Hello all,
I've found two different approaches to rendering objects on top of each other to avoid the 'render glitch' when one or more objects are on the same location. These approaches are camera layering and adapting the render queue of the shader.
However, my problem is a bit more complex. I am making a 2.5D platformer (multiplayer), which is basically a platformer where everything moves on the X axis (Z = 0). So imagine a local player, other players, NPCs and monsters.
I want them to render in the following order ('>' means 'render after'): Local player > NPCs > other players > monsters > geometry.
Now this is easily achievable with camera layering. However, I want the 'other players' to also render one after the other to prevent the render glitch when they are on the same location. This is also the goal for the monsters.
Is there any way I could go about this?
Your answer
![](https://koobas.hobune.stream/wayback/20220612153605im_/https://answers.unity.com/themes/thub/images/avi.jpg)