Search Unity

BUG - Multiple cameras using render texture, only first camera renders lighting

Discussion in 'General Graphics' started by rempelj, May 11, 2017.

  1. rempelj

    rempelj

    Joined:
    Aug 3, 2013
    Posts:
    47
    I'm working on a split-screen game which uses a single RenderTexture to render all of the cameras in the scene. The problem is that only one of the cameras is capable of rendering lights. I am using 5.6.0p3.

    I found it on the tracker here but it seems pretty dead.

    Any Unity devs working on this issue?
     
  2. rempelj

    rempelj

    Joined:
    Aug 3, 2013
    Posts:
    47
    I've looked into this more, and it actually does not matter how many cameras are using the Render Texture. This issue is related to the camera's viewport rect position.

    Point lights are not rendered if the viewport rect X position is too high. The cutoff point is about 0.35. See image:





    If the viewport rect X position is 0.5 or more, the light is not rendered at all.
     
  3. rempelj

    rempelj

    Joined:
    Aug 3, 2013
    Posts:
    47
    This is fixed in Unity 2017.1.0p2