Additive scene is darker on build.

Editor vs Build scene comparison

  • Lighting Setting is the same on both scene.

  • Bake Only. (All lighting is set to baked, both directional & point)

  • LoadSceneAdditive(additiveScene, LoadSceneMode.Additive)

  • SetActiveScene(additiveScene)

Settings


Debug
I also confirmed that both scene is the same.
And its in build.

var activeScene = SceneManager.GetActiveScene();
Debug.LogError($"{activeScene.name}({activeScene.buildIndex}) : {sceneName}({(int)sceneName})");

Need help resolving this issue, it works perfectly fine in the Editor.

Thanks!

I’ve resolved the issue, turning on SSAO in Renderer Feature fixed it on build. Probably have something to do with shader stripping, but this is definitely a bug?

Chances are that it’s related to SkyManager. For more info, check out this chapter in the troubleshooting guide:

It’s strange that the issue resolved itself by enabling SSAO, though…

A lot of the posts about lighting in build points out to shader stripping, see the posts after this one: https://discussions.unity.com/t/830866/5

Someone sent a bug report, but that’s on March 17, which probably will arrive to the GI team on June or more.