Search Unity

Bug Changing Color Temperature overwrite intensity to default value of Directional Light

Discussion in 'High Definition Render Pipeline' started by Kagyu, Sep 10, 2020.

  1. Kagyu

    Kagyu

    Joined:
    Mar 5, 2016
    Posts:
    96
    Hi.
    In runtime, when I give a directional light a new temperature value, the intensity of the light seems to be reset to the default value set in the inspector.
    The problem is, it only happens to rendered image. The intensity value itself is not changed according to the debug log but it is obvious that the value for rendering is somehow changed internally.
    By giving stored intensity value back to the light one frame after changing the temperature, the light start working properly but I have no idea how to get rid of that problematic light flickering frame.
    Is there any work around? or this has to be fixed.

    Unity 2020.1.0.f1
    HDRP 8.2.0