Assassin's Creed:When the Animals or Npc behind trees or something other, how to write a shder?

You can make material and then make that domain to be post process material. Then just add that to post process Blendables.