Does anyone know how I can create Lens Flare in URP that will work on Oculus Quest? I’ve searched everywhere, and can’t figure out how to do this. I’ve tried various URP Lens Flares from the Asset Store, but they only show up in the Unity Scene window, not on the Quest itself, nor does it show up in the Unity Game window.
I know that Unity 2021.2 has built in lens flare, but overall VR support for Quest only works with Unity 2020.3.
To be clear, I can see the lens flare in scene window, but not game window or on the VR headset. I have tried adding a ‘Flare Layer’ component to the Main Camera of the XR Rig as well and it still doesn’t work.
I have also tried enabling the HDR option within the URP settings and this doesn’t work.
Any ideas or insights would be appreciated.
1 Like
Try enabling Post Processing in your Main Camera settings. That worked for me and I was able to get the flare showing. However, in my own case, the position of the flare (sun flare) is not correct, so I think there may be a further issue with this.
Positioning of the flare is correct in scene view and it looks great, however in VR my sun flare is placed at a lower, almost ground level. Really not sure what the issue is here or if there’s another setting I have missed. Would be interested to hear if you had any better luck.
Thanks I will give this a try…
Hey,
Same issue here, the flares only appear at the bottom of the headset (HTC Vive Cosmos). It looks like weird artefacts.
The sun flare (a strong one) display a white rectangle at the bottom.
Although, flares appear in the scene, and in the game window.
Anybody knows if there is a solution for this? I am having the same problem here with the Oculus Quest. The PostProcessing is enabled on the cameras, it renders on the window scene of the editor, but it’s placing on the bottom of the Oculus screen.
It’s broken for XR. I have been trying to file a bug report since September, but they are refusing to even confirm the bug.
https://unity3d.atlassian.net/servicedesk/customer/portal/2/IN-18111
1 Like
Only add Flare layer script on the center camera.