Ambient light randomly looks different with the same value

Hey,

We recently updated from from Unity 2021.1.16f1 to 2021.2.8f1. This caused some issues which were easy enough to fix, but we’ve got one issue left blocking us from releasing an update for our game. Once every 5-15 level loads, ambient light intensity is way too high (as seen in the attached image). The intensity value stays the same, 1 in both cases, but when the issues occurs, the value needs to be adjusted to ~0.1 to get similar results. The issue only occurs on device (iOS/Android), not in editor.

Some other details that could be relevant:

  • We use ShaderGraph for our shaders, nothing is done to ambient light in the shader
  • Levels are addressable and the car in the screenshot is an addressable asset too and loaded separately from the level
  • Issue seems to be more common on iOS than on Android

Anything we can try to track down the issue?

Upload a screenshot from lighting window → ambient light settings

Here are the settings:

One additional detail; We use Bakery Lightmapper, in case that’s relevant.

We were able to get rid of the issue by switching environment lighting source from skybox to flat color in all our levels. Still no idea why skybox source was working most of the time and randomly caused issues.