Search Unity

Postprocessing on non full screen camera - builtin pipeline

Discussion in 'General Graphics' started by cemleme, Mar 2, 2020.

  1. cemleme

    cemleme

    Joined:
    Mar 24, 2017
    Posts:
    30
    Hello,

    I am using the builtin render pipeline.

    I am targeting 16:9 aspect ratio so I am using letterboxing, and handling this by changing the viewport rect of the camera.

    The problem occurs when I use post processing on this camera, I recieve this warning:

    When used with builtin render pipeline, Postprocessing package expects to be used on a fullscreen Camera.
    Please note that using Camera viewport may result in visual artefacts or some things not working.

    There is a huge performance loss on the unity editor and build.

    Is there any suggestion I can follow? Is it possible to letterbox properly without changing the viewport of the camera?

    Thanks
     
  2. icefallgames

    icefallgames

    Joined:
    Dec 6, 2014
    Posts:
    75
    Easiest solution would be to render to a rendertexture that has the letterboxed aspect ratio, and then draw that. A lot of things don't work with a non-standard viewport (e.g. deferred rendering).