Search Unity

[Solved] Split screen with camera filters - is it possible?

Discussion in 'General Graphics' started by QuinnWinters, May 11, 2018.

  1. QuinnWinters

    QuinnWinters

    Joined:
    Dec 31, 2013
    Posts:
    494
    I'm doing split screen and I've also got camera filters on each players camera that are unique to the player. The filters however seem to apply to the entire screen even when I'm sending them to a render texture. I'm thinking perhaps I could make three copies of each filter shader, one for full screen, one for player 1 split and one for for player 2 split and just switch out which shader is used on the camera as needed, but aside from that is there any way of getting the filters to only apply to their designated area of the screen?

    Edit: I was able to solve this by using a second render texture for player 2 layed over the top of the first render texture and rendering that in a UI layer that was above the layer showing player 1's render texture. I'd originally been trying to send them both to the same render texture as would generally be done for split screen to a render texture.
     
    Last edited: May 11, 2018