Split screen for 4 player

Hi everybody! How put 4 players in split screen similar this image?? ?

As far as I know you can’t create triangular viewports and textures :slight_smile:

So my guess is you’d probably have to render 4 cameras into rendertextures (and each camera will render double the amount of pixels since they have to be rectangular, i.e. each camera will render half the screen, so a lot of performance wasting) and then have a shader that combines all of the textures by taking the appropriate pixels from each texture to create the final image…

Unless someone has a smarter solution but that’s what I figure with my limited knowladge.

1 Like

Thanks!:wink:

1 Like

Maybe a masking method (stencil?) to discard unnecessary pixel on the corner could do the job of the 4 render

3 Likes

That’s good. Hope it will work.

1 Like

Well, I use that!:roll_eyes:

How do I apply the stencil in the cameras?