I am trying to add simple point lighting to my 2D game but things aren’t behaving how I would expect.
I created a test scene to demonstrate the strange behaviour:
[36369-screen+shot+2014-12-03+at+16.33.23.png|36369]
Here you can see two SpriteRenderers with the Sprites/Diffuse shader drawing the squares. On top of the left sprite there is a red point light. In-between the sprites there is a blue point light. Both sprites have z=0, both lights have z=-0.5. Everything looks as it should.
[36371-screen+shot+2014-12-03+at+16.33.34.png|36371]
Here I have added a second red point light above the right sprite. As you can see the blue light is no longer visible on the right square.
If you decrease the intensity of the right red light you are able to see the blue light again but much weaker than it should be.
I have also noticed that if I move the right square further right (away from the blue light) things render as they should.
Am I dong something wrong?
Thanks