- Home /
Make part of a camera viewport invisible/transparent
Hi, I would like to make a texture or a mesh which would cover part of a camera and that part of the camera would be transparent so other camera would be visible underneath. I was trying to achieve such an effect following the tutorial linked below but it worked only with orthographic camera, not perspective. (also there's probably a better way to do this) I have unity pro.
Assu$$anonymous$$g I understand correctly, you should render into a texture, then use a transparent material to draw a screen-aligned quad. Or Blit() using a shader which allows transparency.
to clarify: I want to create a dynamic split screen. so the first idea was to use two fullscreen cameras and mask out a half of each one and then just rotate the mask according to the vector between those two players
Answer by recon472 · Sep 01, 2014 at 10:52 PM
so in the end I used this shader. the lightning has to be set to forward rendering for it to work
Your answer
Follow this Question
Related Questions
Unity Camera and transform? 1 Answer
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer
No Glitch Please ... 1 Answer