The game I’m working on has 2D sprite characters on a 3D plane. Similar in appearance to ‘Don’t Starve’. The characters appearance is customizable, made up of several sprites layered over one another inside a parent game object. The billboarding up to this point has been done via a script on the parent game object.
I would like to switch to using a shader for the billboarding, so I can implement dynamic lighting for the characters. However I’m having an issue with some of the sprite positions relative to the parent game object. They no longer seem to move with the parent, and change based on perspective.
I’m wondering if there’s a shader based solution to this, or whether I should be looking into sprite merging or something else.
Any help would be greatly appreciated.
P.S. Shaders are pretty new to me and their scripting is still a bit beyond my understanding!



