Create Sprite with "World Position Offset" in Material

Hi guys.
I’m trying to create a material that uses “World Position Offset” to rotate a plane to face camera like Sprites. Do you know any math behind sprite behavior? Thank you for helping me.