Where to find lens distortion to VR lenses in unity code?

Hi,
I have a problem that I’ve been dealing with for a few months now. The thing is, I have a simple project where a black hole is projected in the post-render using a shader script with all the distortions and stuff. But in VR, this hole gets distorted because there is distortion in the image when converting from desktop to VR fish-eye. The background and the objects around it are handled by Unity itself. To repeat this process, I would have to somehow calculate the deformation coefficient which I don’t know how to do yet or find the part of the code in the Unity engine that handle this and apply this coefficient from that. Does anyone know where to look for this piece of code?

I am using version 2021.3.4f plus a simple OpenXR plugin, XR Interaction Toolkit and XR Plugin Management.

Thank you.
Viky

This isn’t done by Unity code, it’s handled by the compositor. Not much you can do to access this sorry.

Im not sure what you’re trying to accomplish exactly though. Have you considered using a separate in scene camera to get the effect you’re after? People do that all the time for spectator views. It lets you also apply smoothing.