Hello!
I’ve been dabbling in Unity for a while but never really had a need to dive into shaders. However, I’m now toying with a concept that most definitely needs shader magic but I’m quite lost with the terminology.
Essentially I want to place a camera on a scene and then discard all pixels that are not visible by said camera. I believe playing with Z-buffers or stencils may be the way to go here but I may be way off track. The curveball here is that I’d be looking from a different, top-down camera as per the image below (quick illustration of what I’m after).
[/IMG]I’m not looking for a ready-made solution but any pointers as to what to look at would be greatly appreciated! Thanks.