"[2d Lights] We're using a perspective camera, any way to get 2D lights to work properly?" (834199)

Hi,

We implemented 2D lights in 2020.3. They work great. Our game is topdown 2D, however we use a perspective camera to add some depth.

Since updating to 2021.1, the lights appear in a small area in the centre of the screen, bleeding out to the edge. As soon as I change back to a orthographic camera they work correctly, but lose the lovely depth we’ve been working on.

Obviously, we could stop using the 2D renderer and implement normal lights, but we’ve put in so much work already and 2D lights have been giving us the desired effect. They look awesome (in 2020.3 at least!).

Thanks,

I was wondering about this as well. I shifted my 2d camera from ortho to perspective and now I can’t figure out how to get freeform light 2d to work… It shows up, but it’s huge and in an incorrect location lol. I’ve been searching through forums, I feel like this haaas to be an easy fix that I’m just missing.

Hi @JimmyKadesch ,

Which version of Unity are you using? This bug should have been fixed in 2021.1.14 onwards. Let me know if this solves your issue or if the bug is still persistent.

Hey Kenny, im using 2021.1.14 and the bug is still persistent. I updated to 2021.1.18 yesterday to see if it was fixed there, but it was still reproducing the same bug.

Thanks for checking. Can you report that bug and we’ll get to it as soon as possible.

1 Like

Hey Kenny! Another user (kayroice) in a different thread has submitted a bug report for this same bug. It is case #1354732