Search Issue Tracker
By Design
Votes
0
Found in
2020.3.39f1
2021.3.9f1
2022.1.16f1
2022.2.0b7
2023.1.0a9
Issue ID
UUM-14672
Regression
No
Volumetric Fog and Dynamic Shadow disappear on a GameObject when baking a Lightmap with the GameObject disabled, then enabling the GameObject and re-baking the Lightmap
How to reproduce:
1. Open the attached user project
2. Open Scene “ISS_LightBakeTest“ (Assets/Scenes)
3. Bake the Lightmap (Window > Rendering > Lighting, 'Generate Lighting')
4. Activate the “TestLight” GameObject
5. Re-bake the Lightmap (Window > Rendering > Lighting, 'Generate Lighting')
Expected result: All four lights have volumetric fog effects, have light cookies and produce dynamic shadows
Actual result: The “TestLight“ light is broken (No shadow from the “Sphere (11)” GameObject and only the light on the “Cube (8)“ GameObject is visible)
Reproducible with: 2020.3.39f1, 2021.3.9f1, 2022.1.16f1, 2022.2.0b7, 2023.1.0a9
Reproduced on: macOS (12.5)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Spots of bad lighting appear on assets when the lighting is generated in a Scene
- Static Editor Flags dropdown list is cut off when Inspector Window is docked to the very right and UI Scaling is set to a higher value
- visionOS Players are minimized when Guided Access is turned on
- Licensing Client fails to launch when opening Unity Hub
- Sprite Atlas Inspector preview disappears when entering Play mode unless SpriteAtlasMode is set to "Sprite Atlas V2 - Enabled"
Resolution Note:
This is working as designed. One of the spot lights is getting converted to fully baked because we only have 4 channels in the baked shadow mask texture (directional light plus 3 spots). The probe lit sphere is dark because the ambient probe is dark. Placing a Light Probe Group in the scene and surrounding the sphere with light probe positions will let the sphere pick up correct indirect lighting.
Another option is to use smaller range/shape of the lights so they don't overlap.