Search Issue Tracker

Fixed in 2017.2.0f3

Fixed in 5.6.X, 2017.1.X



Found in


Issue ID




Camera Viewport Rect and Depth causes rendering issues with multiple Cameras

Graphics - General


A regression since 5.6.
The first Camera has Clear Flags set to Skybox.
The second and third Camera has Clear Flags set to Depth only.
All Cameras have different Culling Masks.

Steps to reproduce:
1. Open User's attached project
2. Play

Expected behavior: 3 squares (blue, green and red) are visible.
Actual behavior: 2 squares (blue and green) are visible.

Reproduced with: 2017.2.0b1, 2017.1.0f1, 5.6.1p2.
Not reproduced with: 5.5.4p1, 5.4.5f1, 5.3.8p2.

Note: if "Main Camera3" Rendering Path is set to Deferred, the issue is gone.

Comments (4)

  1. chyrho

    Aug 01, 2019 03:57

    I think this issue is only partially fixed. We recently ran into something very similar using Unity 2017.4.22. In our case, the repro conditions are following:

    * iOS build running on device (does not repro on other platforms, or in the editor)
    * Multiple cameras in the scene with various depths; preferrably with lowest depth camera drawing skybox only, other ones clearing depth buffer and drawing some 3d objects
    * Add a directional light to cast shadow
    * Set up 3d objects to cast and receive shadows
    * In quality settings, delete all levels except one, enable both MSAA and shadow (any quality)

    The symptom is that only the camera with highest depth is rendered.

  2. elena7

    Apr 25, 2019 05:20

    Not fixed in 2018.3.7 (orthographic camera)

  3. Loapmail

    Aug 14, 2018 13:00

    Reproduced with: 2018.2.2f1 [LightweightRenderPipeline] (Forward rendering-only)

  4. truegod1205

    Jan 02, 2018 16:30

    Has it been fixed?

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.