Search Issue Tracker

Fixed in 2023.1.X

Duplicate in 2021.2.X

Votes

44

Found in

2019.4.20f1

2020.3

2021.1.0b8

2021.2.0a3

2022.1

Issue ID

1375015

Regression

Yes

Scene is brighter in Standalone player if it was open in the Editor at build time

Shadows/Lights

-

Reproduction steps:

1. Check out repository https://github.com/Wilfrid-Unity/test-unity-scene-brightness that contains repro-projects
2. Start UnityEditor from Trunk revision 38ec60822087 or later (Oct. 17)
3. Open either project "test-birp-scene-brightness" or "test-urp-scene-brightness" (issues happens both in URP, BiRP, and HybridRP)
4. Make sure that scene "Scenes/BlocksScene" is NOT opened in the Editor
5. Build and run a first Development Build of the project that includes only scene "Scenes/BlocksScene"
6. Take a first screenshot of the scene in the first Standalone Player
7. Now in UnityEditor OPEN scene "Scenes/BlocksScene"
8. Build and run a second Development Build of the project that includes only scene "Scenes/BlocksScene"
9. Take a second screenshot of the scene in the first Standalone Player

Expected Result: First screenshot and second screenshot look the same.
Actual Result: First screenshot is darker, second screenshot is darker. Regression introduced in Version 2019.4.20f1;

Compare:

https://raw.githubusercontent.com/Wilfrid-Unity/test-unity-scene-brightness/master/standalone-player-screenshot-when-scene-was-not-open-in-editor-at-build-time.png
https://raw.githubusercontent.com/Wilfrid-Unity/test-unity-scene-brightness/master/standalone-player-screenshot-when-scene-was-open-in-editor-at-build-time.png

Additional information:

- Reproducible in 2022.1.0a13, 2021.2.0f1, 2021.1.27f1, 2020.3.21f1, 2019.4.32f1, 2019.4.20f1
- Not reproducible in Version 2019.4.19f1;
- Regression has been introduced with the skymanager refactor PR;
- The same issue happens in both Windows Standalone Player, as well as Switch Standalone Player (I did not test other platforms)
- The same issue happens with both UniversalRP, Built-In RP, or Hybrid Renderer (I did not test HDRP).

The test scene that can be used for Hybrid Renderer is this one:
https://github.com/Unity-Technologies/Graphics/blob/d82f0afe1b663e7d3b2dc6df82fce48a9c4419fe/TestProjects/UniversalHybridTest/Assets/SampleScenes/BRGGameObjects/BRGGameObjects.unity

Comments (11)

  1. MadStuntman

    Nov 24, 2021 12:29

    In 2022.1.0a15 using HDRP the start scene is brighter even if it wasn't opened during the making of build.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.