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.

Bug Weird Lighting behavior

Discussion in 'Editor & General Support' started by PuddingEntertainment, Jun 19, 2021.

  1. PuddingEntertainment


    Mar 19, 2016
    Hey guys, I've updated from Unity 2020 to Unity 2021.1.12f today and noticed quite weird Lighting behavior.
    Basically, I have a scene with some 3D models in it, and there is one Directional Light object with default values:

    When I enter a play mode for the first time the scene is over-lighted like this:

    But when I press the my custom reload scene button (top left) OR enter the same scene from the different scene the lighting works the way it used to in 2020:

    I don't think it is intended behavior :D

    what could be the problem here?
  2. SoftwareGeezers


    Jun 22, 2013
    The '2020' version doesn't have any bounce lighting added and is only being lit by the one directional light. The 2021 version is applying global illumination. Notice in the 2021 version you can see the shadowed detail of the tower in the bottom right, whereas in the 2020 version, the shadows are completely black.

    I would guess your loading doesn't include creation of the lightmap. If you don't want the 'overbright', change the lighting parameters to reduce the Indirect Multiplier; setting it to 0 will create the 2020 look. Ideally though, you probably want to adjust the light brightness and indirect Multiplier to get a good balance of brightness and shadow detail, and then your problem becomes one of how to get your level loading to apply global illumination.
  3. PuddingEntertainment


    Mar 19, 2016
    @SoftwareGeezers but the problem is with the inconsistent behavior.
    Loading the same scene from a different one or just reloading using
    Code (CSharp):
    1. SceneManager.LoadSceneAsync("SceneName")
    makes it all looking the way I expect.
    So basically since that scene is always called from some other scene it will unlikely cause any issues. It's just quite weird and looks like a bug in Editor somewhere

    doesn't help
    Last edited: Jun 24, 2021