RenderTexture shadows.

Hello I have a multi camera rig which is rendering to a rendertexture for display via full-screen RawImage. Essentially, the cameras are generated at runtime and maintain a relationship to the parent camera which sees the rendertexture full screen. I am not seeing any shadows in the rendertexture, and I am wondering if this is a bug in my setup or an issue with rendertextures.

How can I show shadows in a render texture being used to create post-effects in scene?

r

This appears to be a bug caused by setting the projectionMatrix on the rendering camera.

The following code will break shadows on the rendering cam (renderTexture or not):

Matrix4x4 cpm = cam.projectionMatrix;
cam.projectionMatrix = prj_cc;

r