Answers for "Light intensity Lerp not functioning properly"
http://answers.unity.com/questions/1649427/light-intensity-lerp-not-functioning-properly.html
The latest answers for the question "Light intensity Lerp not functioning properly"Answer by Dragate
http://answers.unity.com/answers/1649437/view.html
I think you're misunderstanding the 3rd argument of the Mathf.Lerp() function. With a stable fps, Time.deltaTime is pretty much a fixed number and from the code snippet you've given, so is duration. This means that in every frame you're passing to the function the same value. In the [docs][1] it says:
> Linearly interpolates between a and b by t.
>
> The parameter t is clamped to the range [0, 1].
>
> When t = 0 returns a.
> When t = 1 return b.
>
> When t = 0.5 returns the midpoint of a and b.
So if t stays the same number (not a increasing/decreasing value), Lerp() will keep returning the same value. There's sample code on how you should use the function properly in the link given.
[1]: https://docs.unity3d.com/ScriptReference/Mathf.Lerp.htmlWed, 17 Jul 2019 16:48:41 GMTDragate