We’re using Lens Flare in URP12 and they have various problems on different platforms (for example: the lens flare position is wrong if you scale the rendering resolution).
We are on Unity 2021.2.5 and it’s still not fixed.
Any ETA on a fix?
We’re preparing a demo of our game and our milestone is approaching fast.
I believe he’s made the backport but he’s on vacation for the Holidays so I can’t confirm. I’ll make myself a reminder to check right after the Holidays. I’ll give you an update as soon as he’s back.
Please report bugs if possible. If you do and post here the case ID’s I can have the developers take a look.
But URP “12.1.4” is already out and available in Unity 2021.2.11 AND it still doesn’t fix the issue (at least i hope)
(Changelog | Universal RP | 12.1.15)
And the issue is not just tied to the Render Scale, but rather about resolution of any render target. For example, while rendering on to a Render Texture, the flare’s position is not correct as well.
Any updates?
EDIT: as of URP 12.1.6 available in 2021.2.16f1 seems the render scale doesn’t seem to effect the falres anymore.
2022.1.0 is out for 3 days and in the release notes, it seems to be addressed. I don’t have time to check it right now, but I hope this was finally it <3
Here would be a temporary solution while we wait for a fix. In LensFlarePass.cs, the DoLensFlareDatadriven procedure must be modified to include the renderscale. For example:
Yes, please include a simple project to reproduce the bug as well as a step-by-step list of how to reproduce it. The project is used to test the bug fix against.
Does not seem to happen on new Unity 6 project, however when I import URP assets from previous versions and I change Render Scale, it shifts the Flare. Managed to track it down to be caused by turning on the Compatibility Settings for RenderGraph.