0

I have many soldiers(600+) on a battleground. So all soldier should be a 2d sprite for the performance issue.

enter image description here

As you can see the foot of the horse is underground, so to solve this, I turn off the ZWrite in ground's shader.

ZWrite Off

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.enter image description here

I also tried to modify the depth offset of the soldier shader, but it seems to big to move soldier upon the ground, and all soldier will upon on effect too, that's not I want.

Offset 0, -100000

So, How can I achieve this? Make all sprite soldier upon the ground and not show the underground part of effects?

BDL
  • 21,052
  • 22
  • 49
  • 55
Tim
  • 2,121
  • 2
  • 20
  • 30
  • Do you need "underground part" in the future? If not can you remove it from another app? (I assume it is also a 2d animation) – Thalthanas Jan 03 '18 at 08:15
  • @Thalthanas It's complicated, because effects can be made in particles or mesh. You can't force to hide when they underground. – Tim Jan 03 '18 at 09:22

0 Answers0