I want to write a shader that shows the camera view from the same perspective & ratio (not fit to the shape of the object).
I want to achieve the grander aim of starting with a background (e.g. bricks) and have a shape “punch a see-through hole” that I can move around and place where I want.
Background (Repeated): (series of bricks- I can only upload 2 images so just imagine it!)
Foreground Object:
Hole shape:
I want to write a shader for this hole shape, so that it shows the exact view of a camera parented to the main camera that is set up to see only background layers.
The part I am missing is the actual shader. I have almost no shader experience but am willing to learn. Point me in the right direction?