Pictured below : Unity’s sprite/diffuse shader, working wonderfully.
[26996-screenshot+2014-05-29+00.06.01.png|26996]
The problem comes when I attempt to rotate my sprite around :
[26997-screenshot+2014-05-29+00.06.16.png|26997]
I don’t know much about shader language, and I suspect I will have to go there to fix this problem. Any help would be appreciated!
Hi, this is because a Sprite is one Quad (or two Tris) and each point (or vertex) in the Quad has a normal to compute the lighting. In the first screenshot the normals are facing toward the light and that’s why it is lit. In the second screenshot you have rotated the Quad, and now all the normals face away from the light.
If you are trying to basically reflect the Sprite/Character in the X you can do as they do in the 2D platformer example and set the Sprite’s scale in the X to -1. This will flip it without affecting the lighting. I hope that helps =)