Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Light doesnt appear on wall depending on camera angle

Discussion in 'Universal Render Pipeline' started by Jan_Hasse, Jan 30, 2020.

  1. Jan_Hasse

    Jan_Hasse

    Joined:
    Sep 11, 2017
    Posts:
    21
    Hey, does anyone know how i can fix my Light? The Light on the wall is disapearing when i move the camera back and forth like in the Screenshots.

    Screenshot_1.png Screenshot_2.png Screenshot_3.png

    I didnt change anything, just changed the angle of the camera a little bit.
    I've already changed the render mode to important but that doenst help to solve my problem.

    Does anyone know how to fix this?

    Greetings
     
  2. Abruzzi

    Abruzzi

    Joined:
    Feb 6, 2015
    Posts:
    44
    You need check Render Pipeline settings, URP has limits on lights per object and per-camera. It is mean if you have more lights on one object than you set in settings it will switching between them
    upload_2020-1-31_9-44-34.png
     
    ZZ_pf and Jan_Hasse like this.
  3. Jan_Hasse

    Jan_Hasse

    Joined:
    Sep 11, 2017
    Posts:
    21
    Hi. Thank you for your answer.
    It seems that i cant handle more than 4 lights with LWRP?
    Is there a workaround or do i have to update my Unity version to use the URP to have more access to Lights?

    Screenshot_4.png
     
  4. Abruzzi

    Abruzzi

    Joined:
    Feb 6, 2015
    Posts:
    44
    Depends on your purpose! In my project for example I have a big objects(one mesh), so I separated it on more pieces - of course I increased my mesh data, but this object now gain more lights. But there is still limit per camera if I correct remember it is 16 per camera.

    For URP here is info:

    [LIST]
    [*]Increased visible lights limit for the forward renderer. It now supports 256 visible lights except in mobile platforms. Mobile platforms support 32 visible lights.
    [*]Increased per-object lights limit for the forward renderer. It now supports 8 per-object lights in all platforms except GLES2. GLES2 supports 4 per-object lights.
    [/LIST]
     
    phil_lira likes this.