Material does not appear properly on portal camera

I am trying to make a portal game using rendertexture with Unity. I have solved my problems like portal rendering and teleporting, but I have some new problems.

Some materials are not displayed properly by the portal camera. As you can see in the picture below, the unity’s refractive glass material, which appears properly in the main camera, does not appear correctly in the portal camera (no distortion effect).

What could be the reason?

A there any difference in settings between portal camera and main camera? For example, it may lack some post-processing options or hdr buffer or whatever feature used by that shader

No. There is no difference between the portal camera and the main camera. Everything is the same, especially for culling masks, components and layers. Both cameras do not have post processing. There are no scripts that work with shaders.

When I calculated the oblique matrix of the portal camera, I realized that there was a problem.But I don’t know why.

I still haven’t solved the problem. This problem arises when I calculate a projection matrix for the portal camera. Most shaders don’t look right. There is no problem when I do not calculate the projection matrix.