Search Issue Tracker

By Design

Votes

37

Found in

2019.1.0a10

2019.1.0a14

2019.2.0a1

Issue ID

1119198

Regression

Yes

Some Clear flags of Cameras are not working when using Post Process Layer and Directly to Camera Target is set to true

Post Processing

-

How to reproduce:
1. Open user attached project "PostProcessingWithMultipleCameraIssue.zip"
2. Open "SampleScene" scene

Expected result: Game view background is a skybox
Actual result: Game view background is black

Reproducible with - 2019.1.0a10, 2019.1.0b1, 2019.2.0a3, 2019.3.0a2
Not reproducible with - 2018.3.3f1

Notes:
1) Cant Test with 2019.1.0a1 - 2019.1.0a9 because Post Process Layer script component does not load
2) Could not reproduce with 2017.4 because Post Process Layer script didn't load
3) Don't Clear and Depth Only Clear flags are not working

  1. Response avatar

    Resolution Note:

    The "Direct to Camera Target" option removes the final blit Unity does when outputting to the screen, instead letting the post-processing stack output directly to that screen for a small performance benefit. However, this means that any cameras which render after this camera will not be combined with what has been rendered so far, effectively clearing the screen for those cameras. So, this option should only be used on the last camera that you are going to render in a frame.

    Note that some users have run into this behaviour when upgrading from older versions to Unity 2019.1 or later. This is because the option was unintentionally enabled by default, but did not do anything in versions prior to Unity 2019.1. (The default has been corrected, as of Postprocessing 2.1.7). Disabling the option will restore the Unity 2018 behaviour.

    The behaviour can also be controlled at runtime, via the API on the PostProcessLayer component; for more information, see https://docs.unity3d.com/Packages/com.unity.postprocessing@2.3/api/UnityEngine.Rendering.PostProcessing.PostProcessLayer.html

Comments (12)

  1. 2f01caaf14251f7e7cb3c95ecbcc0b72?d=mm

    sewy

    Jul 22, 2019 10:38

    If it is "by design" what about the blurrines when disabled?

  2. Fdd9de2e64220bf8c7942a5662860d1d?d=mm

    joshcamas

    Jul 05, 2019 14:39

    Reproducible in Unity 2019.1.9

  3. Ef1f019d0b6ff3e241f86822b97b475a?d=mm

    Tizzio91

    Jul 01, 2019 20:01

    Reproducible in 2019.3.0a7

  4. Fdd9de2e64220bf8c7942a5662860d1d?d=mm

    joshcamas

    Jun 25, 2019 05:59

    Reproducible in Unity 2019.1.8

  5. Fdd9de2e64220bf8c7942a5662860d1d?d=mm

    joshcamas

    Jun 18, 2019 18:53

    Reproducible in Unity 2019.1.7

    I am stuck using 2018.3 due to this bug

  6. A14052a585782bf96d9783deeefffcbc?d=mm

    mdrittel

    Jun 12, 2019 07:21

    Reproducible in 2019.1.6

  7. 015265d8f4407d67bd999849bc65c1f8?d=mm

    Tomer-Barkan

    Jun 07, 2019 09:45

    Are there plans to fix this?
    2019.1.5 and it's still there, preventing us from upgrading from 2018 to 2019.

  8. 0a72766729ab90db7ef5df86cc350856?d=mm

    sumpfkraut

    Jun 04, 2019 07:03

    Reproducible in 2019.1.5

  9. Fdd9de2e64220bf8c7942a5662860d1d?d=mm

    joshcamas

    May 26, 2019 21:39

    Reproducible in 2019.1.4

  10. C970015f037bf14bdd850ccb9375cbb2?d=mm

    Racot_A

    May 21, 2019 16:00

    Reproducible in 2019.1.3

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.