- Home /
Z Order. How can I put all sprite upon ground but not effects?
Here is the thing.
I have many soldiers(600+) on a battleground. So all soldier should be a 2d sprite for the performance issue.
You can see the foot of the horse is underground, so to solve this, I turn off the ZWrite in ground's shader.
But when I turn off the ZWrite of ground, another issue happened, some effect's underground part is been showed, which is not I want to see.
So, is there any way to put soldier sprite always rendered on top of the ground, but also the effect's underground part will not be rendered?
Your answer
Follow this Question
Related Questions
How to define a point on a sprite, and get that point in world space. 1 Answer
2D Sprite Always Visible - Shader / Material not working (ZTest, ZWrite, Culling) 1 Answer
How to snap UI element anchor relative to image sprite? 2 Answers
How i can find position of left coner of the sprite. 0 Answers
How to have sorting order/layers used when Z depth is the same? 1 Answer