Hi guys
I am very puzzled.
Set up this code in an empty scene. and set up the scene similar to the screen shot. so 3 camera each can only see 1 object. and each camera will render what it sees to a rawImage. the expect result is raw image 1 sees the cube, raw imge 2 sees the cube and the sphere and raw image 3 sees cube sphere and capsule. but image 3 is where it gets weird. it sees cube and capsule instead.
[SerializeField] Camera CameraA;
[SerializeField] Camera CameraB;
[SerializeField] Camera CameraC;
[SerializeField] RenderTexture textureA;
[SerializeField] RenderTexture textureB;
[SerializeField] RenderTexture textureC;
[SerializeField] RawImage rawImageA;
[SerializeField] RawImage rawImageB;
[SerializeField] RawImage rawImageC;
private void Start()
{
textureA = new RenderTexture(CameraA.pixelWidth, CameraA.pixelWidth, 1);
textureB = new RenderTexture(CameraB.pixelWidth, CameraB.pixelWidth, 2);
textureC = new RenderTexture(CameraC.pixelWidth, CameraC.pixelWidth, 3);
CameraA.targetTexture = textureA;
CameraB.targetTexture = textureB;
CameraC.targetTexture = textureC;
rawImageA.texture = textureA;
rawImageB.texture = textureB;
rawImageC.texture = textureC;
}
// Update is called once per frame
void Update()
{
Graphics.Blit(textureA, textureB);
Graphics.Blit(textureB, textureC);
}