Search Issue Tracker
By Design
Votes
0
Found in [Package]
11.0.0
Issue ID
1311215
Regression
No
[HDRP] Light intensity gets reset to its initial value when you set it before Update method is called
How to reproduce:
1. Open the user's attached "LightIntensityBug" project
2. Open the "Main" Scene (found in the Assets/Scenes folder)
3. Enter the Play Mode
Expected results: In the console "Update: 10" is printed
Actual results: In the console "Update: 47.74648" is printed
Reproducible with: 4.10.0-preview (2018.4.31f1), 7.5.3 (2019.4.19f1), 10.3.1 (2020.2.3f1), 11.0.0 (2021.1.0b5, 2021.2.0a3)
Notes:
- The issue is not reproducible in Built-in RP and Universal RP
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
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
- Graphics Compositor breaks Unity rendering when the "Output Camera" is changed to a scene Camera and one Camera SubLayer is active
- The Editor freezes on RenderGraphViewer.Repaint when entering too many characters in search fields without character limits
- Adding a new SubLayer in Graphics Compositor renders BaseLayer darker and makes it flicker
Resolution Note:
This is the expected result with the Light Component API.
In HDRP, you need to use the HDAdditionalLightData API instead of the API in the Light component:https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@10.3/api/UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.html#UnityEngine_Rendering_HighDefinition_HDAdditionalLightData_intensity
I know this may look like a workaround for now but we're working on a proper solution that will be soon available.