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?
↧