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

Package: SRP HD Template

-

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

  1. 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.

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.