Reproduction steps:
1. Open the attached “BackgroundSeparationTest.zip“ project
2. Open “OutdoorsScene” scene
3. Enter Play mode and observe the Game window
4. Exit Play mode and Build and Run the project
5. Observe the Build window
Expected result: GameObjects are colored regardless of the Shader used
Actual result: Only GameObjects that use the HDRP/Lit Shader are colored
Reproducible with: 2020.3.44f1
Not reproducible with: 2021.3.16f1, 2022.2.2f1, 2023.1.0a25
Reproduced on: macOS Monterey 12.6 (Intel)
Note:
- Cannot test on WebGL due to errors: “BuildFailedException: Platform WebGL with graphics API OpenGLES3 is not supported with HDRP”
- Couldn’t find the fixing version due to obsolete code being used that prevents reproduction