Lens Flare (SRP) Does not work correctly with Render Scale

Unity 2021.2.7f1

If you change the Render Scale the Lens Flare doesn’t match the screen size

Expected:


Actual: (after setting the Render Scale to 1.17)

SRP Lens Flare also doesn’t work in VR. It moves with main Camera and does not stay in place.

Same here. When adjusting the render target to take a high resolution screenshot, the lens flare does not adjust to the new size.

Tried to re-enable hoping that this would somehow update the internal state, but it did not work.

Just a note, I have not logged this as a bug, so Unity most likely does not know about this.

They’re aware and it was already logged. Last time the bug was addressed in Unity 2022 and waiting to be backported to 2021.2.
It’s still not fixed in 2021.2.8f1.

Actually expected it not to work in VR.

I think it’s kind of crazy. This is one of the new features of URP in 2021.2 and it’s been pretty much broken from the start in a lot of cases. Also, this is something so apparent that any kind of unit test / basic Unity usage should have detected it: we basically discovered the bug after a couple of hours.
And it’s still not fixed after months.

The fix is probably a line of code to account for the screen resolution scaling… but I have no intention to copy and modify the URP package for something this simple.

Well Decals in SRP are also pretty useless at present unless you have them flush with the surface (kind of defeats why you’d use a decal and not a billboard) as they will draw on absolutely everything in URP.

I get the impression they just wanted to be able to put the feature down then iterate on it. It’s probably best to wait a year if it needs a feature, or hopefully just a few patches for the bug.

I remember when they launched AO for URP, I tried it out in my project and immediately noticed it was drawing on top of transparent objects with no way to choose the draw order. Like how on earth did that not get noticed? And it took them ages to fix.

I would understand if it was an open-source platform, but as a paying client, I expect them to deliver correctly on the features they adding.

I remember XNA days Microsoft would release a big update once a year with no beta testing IIRC and it would be close to perfect and include tutorials & samples of the new features.

Also breaks with camera stacking, whole screen goes black. Add it to the list of “URP cant”. This is so embarrassing.