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