Search Unity

Bug: Gameview is flipped/broken when I change the camera targetTexture

Discussion in 'Image Effects' started by WildMageGames, Apr 27, 2017.

  1. WildMageGames

    WildMageGames

    Joined:
    Mar 24, 2014
    Posts:
    283
    Hi,

    In forward rendering, when the Post Processing Stack is active, if I change the target texture of the camera, the gameview is horizontally flipped and is showing one of the stack buffer, for instance the SSAO in attached image.

    Example of a component attached to the camera:
    Code (CSharp):
    1. void Start() {
    2.     GetComponent<Camera>().targetTexture = GetComponent<Camera>().targetTexture;
    3. }
     

    Attached Files: