Different display of an item in thirdperson and in inventory

How do I make an item look 2D in the inventory and 3D in Thirdperson? Just like a trident. I heard that some shader was made for this, but I don't know its name and I don't know if it works on 1.21.

Continue to help post