The picture from the camera is displayed incorrectly

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tem12qaz

I am doing a project with portals. I took the basics of the code from this project
It uses GLES2. And everything works well with him. I want to use GLES3. But problems arise with him. The meshinstance of the portal displays a picture from the camera. And she’s a different shade.
All settings are the same, character camera and portal, main viewport and portal viewport. The photo on the left shows the MeshInstance of the portal.
The portal is also displayed incorrectly in the portal. (black figure on the left) I would be very glad to get help.

enter image description here