Search Issue Tracker

Fixed in Unity 2017.2

Votes

1

Found in

5.6.0f3

Issue ID

903537

Regression

Yes

Secondary Cameras with RenderTextures do not render Lighting

Camera

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 3Workaround is possible

If more than one Camera is set to render texture, then Spot Lights and Point Lights in any of the secondary Cameras will have no effect on objects in the scene.

To reproduce:

1. Download attached project "MultipleCameraLightingBug.zip" and open in Unity
2. Open "MultipleCameraLightingBug" scene

Expected result: Both Cameras receives Lighting
Actual result: Only one Camera receives Lighting

Note: This doesn't happen with Directional Light.
Note: If you build this project on Windows, problem still reproduces

Reproduced on Unity 5.6.0f2, 5.6.0f3 and 5.6.0p2
Not reproduced on Unity 5.5.3p1, 5.6.0p1 and 2017.1.0b1
Regression on Unity 5.6.0p2

Comments (2)

  1. 5f034ddb162f30821f067927da0e502b?d=mm

    rempelj

    May 13, 2017 18:13

    Actually, I am only experiencing this if the camera's viewport rect is higher than some value. More info here: https://forum.unity3d.com/threads/bug-multiple-cameras-using-render-texture-only-first-camera-renders-lighting.470458/

  2. 5f034ddb162f30821f067927da0e502b?d=mm

    rempelj

    May 09, 2017 18:42

    Experiencing this bug in 5.6.0p3.

All about bugs

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