Search Issue Tracker
Fixed in 10.1.0
Votes
0
Found in [Package]
HDRP 10.0.0-preview.27
Issue ID
1282111
Regression
Yes
Env light does contribute to lightmap except in first bake after Unity restart (HDRP 9.0.0-preview)
Repro:
1) Open the project in the attached EnvLightTest.zip and load up TestScene.
2) Bake light and observe that environment light is contributing to the generated lightmap.
3) In Lighting > Environment, switch Static Lighting Sky to "None" and rebake. Observe that the generated lightmap is now black.
4) Switch Static Lighting Sky back to "HDRISky" and rebake. Observe that the lightmap is now unexpectedly still black.
Expected: Rebaking with Static Lighting Sky set to "HDRISky" and "None" should generate non-black and black lightmaps respectively.
Actual: Except for the first bake, the lightmaps are always black even when Static Lighting Sky = HDRISky. See attached envbake-hdrp9.gif.
This only happens when Visual Environment -> Ambient Mode is set to "Dynamic" in the associated Volume Profile. To my understanding, Ambient Mode only affects the ambient probe and should not affect lightmap baking.
It is unclear whether this is due to an issue with HDRP or with lightmap baking.
Verified using Unity 2020.2.0b5 and HDRP 9.0.0-preview.54. HDRP 10.0.0-preview.27 also exhibits this behavior but HDRP 8.1.0 does not. This suggests the issue was introduced somewhere between HDRP 8.1 and HDRP 9.0.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader transparency, discard, and clip are not working when using the Player
- Error is thrown when clicking on warning in the console
- Long IL2CPP build time when project has a .ufbx library wrapper
- Cursor doesn't change to the resizing when using the Rect Tool and the Sprite is too close to the bottom of the Scene View
- InvalidOperationException exception is thrown when Editor Default Text Rendering Mode is set to "Bitmap" and Editor Font is set to "System Font" and an array is expanded in the Inspector Window
Add comment